jwt

package
v1.3.0-rc3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Claims added in v1.2.0

func Claims(in interface{}) jwtgo.Claims

func GetField

func GetField(claims jwtgo.MapClaims, fieldName string) string

GetField extracts a field from the claims as a string

func GetGroups

func GetGroups(mapClaims jwtgo.MapClaims) []string

func GetIssuedAt added in v0.11.0

func GetIssuedAt(m jwtgo.MapClaims) (int64, error)

GetIssuedAt returns the issued at as an int64

func GetScopeValues added in v1.0.0

func GetScopeValues(claims jwtgo.MapClaims, scopes []string) []string

GetScopeValues extracts the values of specified scopes from the claims

func IsMember added in v1.2.0

func IsMember(claims jwtgo.Claims, groups []string) bool

IsMember returns whether or not the user's claims is a member of any of the groups

func MapClaims

func MapClaims(claims jwtgo.Claims) (jwtgo.MapClaims, error)

MapClaims converts a jwt.Claims to a MapClaims

Types

This section is empty.

Directories

Path Synopsis
The package provides a way to create compact JWTs, "zJWT".
The package provides a way to create compact JWTs, "zJWT".

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL