Documentation ¶
Index ¶
- Constants
- Variables
- func Auth(t Type, key interface{}) sola.Middleware
- func Claims(c sola.Context, key string) interface{}
- func Clean(m sola.Middleware) sola.Middleware
- func CleanFunc(h sola.Handler) sola.Handler
- func New(signAuth, pre, success sola.Middleware) sola.Middleware
- func NewFunc(signAuth, pre sola.Middleware, success sola.Handler) sola.Handler
- func NewJWT(key []byte) (sign sola.Middleware, wrapper sola.Middleware)
- func Sign(t Type, key interface{}) sola.Middleware
- type BaseCheck
- type Type
Constants ¶
View Source
const ( Issuer = "sola/auth" CtxUsername = "auth.username" CtxPassword = "auth.password" CtxClaims = "auth.claims" CtxToken = "auth.token" )
Context Key
Variables ¶
View Source
var (
ErrNoClaims = errors.New("auth.claims not found")
)
error(s)
View Source
var LoadAuthCache = loadAuthCache
LoadAuthCache Middleware's export
Functions ¶
func NewFunc ¶
func NewFunc(signAuth, pre sola.Middleware, success sola.Handler) sola.Handler
NewFunc Auth Handler
Types ¶
Click to show internal directories.
Click to hide internal directories.