Documentation ¶
Index ¶
- func Claims(in interface{}) jwtgo.Claims
- func Float64Field(claims jwtgo.MapClaims, fieldName string) float64
- func GetGroups(mapClaims jwtgo.MapClaims, scopes []string) []string
- func GetID(m jwtgo.MapClaims) (string, error)
- func GetScopeValues(claims jwtgo.MapClaims, scopes []string) []string
- func IsMember(claims jwtgo.Claims, groups []string, scopes []string) bool
- func IssuedAt(m jwtgo.MapClaims) (int64, error)
- func IssuedAtTime(m jwtgo.MapClaims) (time.Time, error)
- func MapClaims(claims jwtgo.Claims) (jwtgo.MapClaims, error)
- func StringField(claims jwtgo.MapClaims, fieldName string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Float64Field ¶ added in v1.7.12
Float64Field extracts a field from the claims as a float64
func GetScopeValues ¶ added in v1.0.0
GetScopeValues extracts the values of specified scopes from the claims
func IsMember ¶ added in v1.2.0
IsMember returns whether or not the user's claims is a member of any of the groups
func IssuedAtTime ¶ added in v1.7.12
IssuedAtTime returns the issued at as a time.Time
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.