Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NewTokenFuncs = map[string]NewTokenFunc{}
NewTokenFuncs is a map containing all the registered auth strategies.
Functions ¶
func Register ¶
func Register(name string, f NewTokenFunc)
Register registers a new auth strategy new function. Not safe for concurrent use. Safe for use from package init.
Types ¶
type NewTokenFunc ¶
type NewTokenFunc func(map[string]interface{}) (auth.TokenStrategy, error)
NewTokenFunc is the function that token strategies should register at init time.
Click to show internal directories.
Click to hide internal directories.