jwk

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWK

type JWK struct {
	Key       interface{}
	KeyID     string
	KeyType   string
	Algorithm string
	Use       string
}

func (*JWK) UnmarshalJSON

func (j *JWK) UnmarshalJSON(data []byte) error

type JWKS

type JWKS struct {
	// contains filtered or unexported fields
}

func NewJWKS

func NewJWKS(ctx context.Context, uri string, ttl string, maxStale string, transport http.RoundTripper) (*JWKS, error)

func (*JWKS) Data

func (j *JWKS) Data() (*JWKSData, error)

func (*JWKS) GetKey

func (j *JWKS) GetKey(kid string, alg string, use string) (*JWK, error)

func (*JWKS) GetSigKeyForToken

func (j *JWKS) GetSigKeyForToken(token *jwt.Token) (interface{}, error)

func (*JWKS) Unmarshal

func (j *JWKS) Unmarshal(rawJSON []byte) (interface{}, error)

type JWKSData

type JWKSData struct {
	Keys []*JWK `json:"keys"`
}

Jump to

Keyboard shortcuts

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