jwks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrSigningKeyNotKnown indicates a token where for which there is no signing key in this JWKS.
	ErrSigningKeyNotKnown = errSigningKeyNotKnown()
)

Functions

This section is empty.

Types

type JWKS

type JWKS interface {
	Key(kid string) []jose.JSONWebKey
	ReadSigned(rawToken string) JWTRead
}

JWKS abstracts token validation using JWKS resolved with FetchJWKS.

func ResolveJWKS

func ResolveJWKS(location *url.URL, client *http.Client) (JWKS, error)

ResolveJWKS loads JWKS configuration from the given URL.

type JWTRead

type JWTRead interface {
	Error() error
	Headers() []jose.Header
	Claims() tokens.Claims
}

JWTRead abstracts the jwt token read result.

Jump to

Keyboard shortcuts

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