jwt

package
v0.0.0-...-493bc98 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateAuth

func ValidateAuth(auth string, jwksUrl string) (interface{}, error)

func ValidateClaimValue

func ValidateClaimValue(token interface{}, validateClaim map[string][]string) bool

Types

type DataJWT

type DataJWT map[string]interface{}

type Jwks

type Jwks struct {
	Keys []Keys `json:"keys"`
}

type Keys

type Keys struct {
	Kty string `json:"kty"`
	Use string `json:"use"`
	Kid string `json:"kid"`
	Alg string `json:"alg"`
	N   string `json:"n"`
	E   string `json:"e"`
}

Jump to

Keyboard shortcuts

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