Documentation ¶
Index ¶
- Variables
- func GetEmail(token *jwt.Token, audience string) (string, error)
- func GetScopes(token *jwt.Token) ([]string, error)
- func New(keyCapacity int, ttl int64)
- func Validate(jwkURL string, audience string, issuer string, req *http.Request) (*jwt.Token, error)
- func ValidateFast(jwkURL string, audience string, issuer string, req *fasthttp.RequestCtx) (*jwt.Token, error)
- type URLScope
Constants ¶
This section is empty.
Variables ¶
View Source
var Cached cache.Cache
Cached - the cache for the tokens
Functions ¶
func ValidateFast ¶
func ValidateFast(jwkURL string, audience string, issuer string, req *fasthttp.RequestCtx) (*jwt.Token, error)
ValidateFast - validate with JWK & JWT Auth0 & audience & issuer for fasthttp
Types ¶
Click to show internal directories.
Click to hide internal directories.