Documentation ¶
Index ¶
- func Claims(in interface{}) jwtgo.Claims
- func ExpirationTime(m jwtgo.MapClaims) (time.Time, error)
- func Float64Field(claims jwtgo.MapClaims, fieldName string) float64
- func GetGroups(mapClaims jwtgo.MapClaims, scopes []string) []string
- func GetScopeValues(claims jwtgo.MapClaims, scopes []string) []string
- func IsMember(claims jwtgo.Claims, groups []string, scopes []string) bool
- func IsValid(token 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 ExpirationTime ¶
ExpirationTime returns the expiration as a time.Time
func Float64Field ¶
Float64Field extracts a field from the claims as a float64
func GetScopeValues ¶
GetScopeValues extracts the values of specified scopes from the claims
func IssuedAtTime ¶
IssuedAtTime returns the issued at as a time.Time
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.