Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var JWT = &jwt.GinJWTMiddleware{ Realm: "Gasper", Key: []byte(configs.GasperConfig.Secret), Timeout: configs.JWTConfig.Timeout * time.Second, MaxRefresh: configs.JWTConfig.MaxRefresh * time.Second, TokenLookup: "query:token", TimeFunc: time.Now, Authenticator: authenticator, PayloadFunc: payloadFunc, IdentityHandler: identityHandler, Authorizator: authorizator, Unauthorized: unauthorized, }
JWT handles the auth through JWT token
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.