o2o

package
v0.0.0-...-bc71274 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

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