auth

package
v0.0.0-...-d5c80ff Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJwtHandler

func NewJwtHandler(oidClient OIDClient, authTokenValidationIssuer string, authTokenValidationAudience string) *jwtHandler

Types

type JWK

type JWK struct {
	Keys []*JWK `json:"keys,omitempty"`

	Kty string `json:"kty"`
	Use string `json:"use,omitempty"`
	Kid string `json:"kid,omitempty"`
	Alg string `json:"alg,omitempty"`

	Crv string `json:"crv,omitempty"`
	X   string `json:"x,omitempty"`
	Y   string `json:"y,omitempty"`
	D   string `json:"d,omitempty"`
	N   string `json:"n,omitempty"`
	E   string `json:"e,omitempty"`
	K   string `json:"k,omitempty"`
}

type KeyList

type KeyList struct{ Keys []JWK }

func (*KeyList) GetKey

func (ks *KeyList) GetKey(kid string) (*JWK, bool)

type OIDClient

type OIDClient interface {
	GetJWK(kid string) (*JWK, error)
}

Jump to

Keyboard shortcuts

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