auth

package
v0.0.0-...-70d48f5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2018 License: MIT Imports: 18 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Auth initialize Auth for Authentication
	Auth *auth.Auth
	// Authority initialize Authority for Authorization
	Authority *authority.Authority
)

Functions

func Init

func Init()

Types

type AdminAuth

type AdminAuth struct{}

func (AdminAuth) GetCurrentUser

func (AdminAuth) GetCurrentUser(c *admin.Context) qor.CurrentUser

func (AdminAuth) LoginURL

func (AdminAuth) LoginURL(c *admin.Context) string

func (AdminAuth) LogoutURL

func (AdminAuth) LogoutURL(c *admin.Context) string

type Redirector

type Redirector struct {
	*redirect_back.RedirectBack
}

Redirector our custom redirector for /checkin

func (Redirector) Redirect

func (redirector Redirector) Redirect(w http.ResponseWriter, req *http.Request, action string)

Redirect redirect back after action

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL