Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultFileter ¶
func DefaultFileter() beego.FilterFunc
func NewAuthFileter ¶
func NewAuthFileter(tokenPeriod uint64, secretFunc tokenauth.GenerateSecretString, tokenFunc tokenauth.GenerateTokenString) beego.FilterFunc
Types ¶
type O2OAutomatic ¶
type O2OAutomatic struct { Audience *tokenauth.Audience tokenauth2beego.Automatic }
var Auth *O2OAutomatic
func (*O2OAutomatic) NewSingleToken ¶
func (a *O2OAutomatic) NewSingleToken(userID string, w ...http.ResponseWriter) (token *tokenauth.Token, err error)
Get and Save a new token. this user's other token will be destory. Set Authorization to header,if w is not nil.
Click to show internal directories.
Click to hide internal directories.