auth

package
v0.0.0-...-0439856 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2016 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Auth = authboss.New()
)

Functions

func CurrentLocale

func CurrentLocale(req *http.Request) string

func NewCookieStorer

func NewCookieStorer(w http.ResponseWriter, r *http.Request) authboss.ClientStorer

func NewSessionStorer

func NewSessionStorer(w http.ResponseWriter, r *http.Request) authboss.ClientStorer

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 AuthStorer

type AuthStorer struct {
}

func (AuthStorer) ConfirmUser

func (s AuthStorer) ConfirmUser(tok string) (result interface{}, err error)

func (AuthStorer) Create

func (s AuthStorer) Create(key string, attr authboss.Attributes) error

func (AuthStorer) Get

func (s AuthStorer) Get(key string) (result interface{}, err error)

func (AuthStorer) Put

func (s AuthStorer) Put(key string, attr authboss.Attributes) error

func (AuthStorer) RecoverUser

func (s AuthStorer) RecoverUser(rec string) (result interface{}, err error)

type CookieStorer

type CookieStorer struct {
	// contains filtered or unexported fields
}

func (CookieStorer) Del

func (s CookieStorer) Del(key string)

func (CookieStorer) Get

func (s CookieStorer) Get(key string) (string, bool)

func (CookieStorer) Put

func (s CookieStorer) Put(key, value string)

type SessionStorer

type SessionStorer struct {
	// contains filtered or unexported fields
}

func (SessionStorer) Del

func (s SessionStorer) Del(key string)

func (SessionStorer) Get

func (s SessionStorer) Get(key string) (string, bool)

func (SessionStorer) Put

func (s SessionStorer) Put(key, value string)

Jump to

Keyboard shortcuts

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