adsa-cms: github.com/mmanjoura/adsa-cms/qor-example/config/auth Index | Files

package auth

import "github.com/mmanjoura/adsa-cms/qor-example/config/auth"

Index

Package Files

admin_auth.go auth.go cookie_storer.go db_storer.go session_storer.go

Variables

var (
    Auth = authboss.New()
)
var CookieStore *securecookie.SecureCookie

func CurrentLocale Uses

func CurrentLocale(req *http.Request) string

func NewCookieStorer Uses

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

func NewSessionStorer Uses

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

type AdminAuth Uses

type AdminAuth struct {
}

func (AdminAuth) GetCurrentUser Uses

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

func (AdminAuth) LoginURL Uses

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

func (AdminAuth) LogoutURL Uses

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

type AuthStorer Uses

type AuthStorer struct {
}

func (AuthStorer) ConfirmUser Uses

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

func (AuthStorer) Create Uses

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

func (AuthStorer) Get Uses

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

func (AuthStorer) Put Uses

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

func (AuthStorer) RecoverUser Uses

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

type CookieStorer Uses

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

func (CookieStorer) Del Uses

func (s CookieStorer) Del(key string)

func (CookieStorer) Get Uses

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

func (CookieStorer) Put Uses

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

type SessionStorer Uses

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

func (SessionStorer) Del Uses

func (s SessionStorer) Del(key string)

func (SessionStorer) Get Uses

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

func (SessionStorer) Put Uses

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

Package auth imports 24 packages (graph) and is imported by 3 packages. Updated 2017-06-20. Refresh now. Tools for package owners.