Documentation ¶
Index ¶
- func Claims(in interface{}) jwt.Claims
- func GetField(claims jwt.MapClaims, fieldName string) string
- func GetFieldInterface(claims jwt.MapClaims, fieldName string) interface{}
- func GetIssuedAt(m jwt.MapClaims) (int64, error)
- func GetScopeValues(claims jwt.MapClaims, scopes []string) []string
- func IsMember(claims jwt.Claims, groups []string) bool
- func MapClaims(claims jwt.Claims) (jwt.MapClaims, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFieldInterface ¶ added in v0.4.33
GetFieldInterface extracts a field from the claims as an interface
func GetIssuedAt ¶
GetIssuedAt returns the issued at as an int64
func GetScopeValues ¶
GetScopeValues extracts the values of specified scopes from the claims
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.