Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClaimsFromContext ¶
func ClaimsFromContext(r *http.Request) (*jwt.StandardClaims, error)
ClaimsFromContext gets claims from the request context
func ClaimsToContext ¶
func ClaimsToContext(r *http.Request, c *jwt.StandardClaims)
ClaimsToContext puts claims to the request context
Types ¶
type Token ¶
type Token struct { // AuthService auth.DefaultService SigningMethod jwt.SigningMethod Config Config }
Token represents a jwt token service It uses an AuthService for the authentication logic It generates a jwt token from UserDetails data
Click to show internal directories.
Click to hide internal directories.