Documentation
¶
Index ¶
- func GetAuthboss() *authboss.Authboss
- func NewCookieStorer(w http.ResponseWriter, r *http.Request) authboss.ClientStorer
- func NewSessionStorer(w http.ResponseWriter, r *http.Request) authboss.ClientStorer
- func RedirectMinio(w http.ResponseWriter, r *http.Request, minioToken string)
- func SetupAuthboss()
- func SetupStorer()
- type CookieStorer
- type MemStorer
- func (s MemStorer) AddToken(key, token string) error
- func (s MemStorer) ConfirmUser(tok string) (result interface{}, err error)
- func (s MemStorer) Create(key string, attr authboss.Attributes) error
- func (s MemStorer) DelTokens(key string) error
- func (s MemStorer) Get(key string) (result interface{}, err error)
- func (s MemStorer) GetOAuth(uid, provider string) (result interface{}, err error)
- func (s MemStorer) Put(key string, attr authboss.Attributes) error
- func (s MemStorer) PutOAuth(uid, provider string, attr authboss.Attributes) error
- func (s MemStorer) RecoverUser(rec string) (result interface{}, err error)
- func (s MemStorer) UseToken(givenKey, token string) error
- type SessionStorer
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuthboss ¶
func NewCookieStorer ¶
func NewCookieStorer(w http.ResponseWriter, r *http.Request) authboss.ClientStorer
func NewSessionStorer ¶
func NewSessionStorer(w http.ResponseWriter, r *http.Request) authboss.ClientStorer
func RedirectMinio ¶
func RedirectMinio(w http.ResponseWriter, r *http.Request, minioToken string)
func SetupAuthboss ¶
func SetupAuthboss()
func SetupStorer ¶
func SetupStorer()
Types ¶
type CookieStorer ¶
type CookieStorer struct {
// contains filtered or unexported fields
}
func (CookieStorer) Del ¶
func (s CookieStorer) Del(key string)
func (CookieStorer) Put ¶
func (s CookieStorer) Put(key, value string)
type MemStorer ¶
func NewMemStorer ¶
func NewMemStorer() *MemStorer
func (MemStorer) ConfirmUser ¶
func (MemStorer) PutOAuth ¶
func (s MemStorer) PutOAuth(uid, provider string, attr authboss.Attributes) error
func (MemStorer) RecoverUser ¶
type SessionStorer ¶
type SessionStorer struct {
// contains filtered or unexported fields
}
func (SessionStorer) Del ¶
func (s SessionStorer) Del(key string)
func (SessionStorer) Put ¶
func (s SessionStorer) Put(key, value string)
type User ¶
type User struct {
ID int
Name string
// Auth
Email string
Password string
// OAuth2
Oauth2Uid string
Oauth2Provider string
Oauth2Token string
Oauth2Refresh string
Oauth2Expiry time.Time
// Confirm
ConfirmToken string
Confirmed bool
// Lock
AttemptNumber int64
AttemptTime time.Time
Locked time.Time
// Recover
RecoverToken string
RecoverTokenExpiry time.Time
}
Click to show internal directories.
Click to hide internal directories.