jwt

package
v1.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetField

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

GetField extracts a field from the claims as a 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 MapClaims

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

MapClaims converts a jwt.Claims to a MapClaims

Types

This section is empty.

Jump to

Keyboard shortcuts

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