auth0

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authority

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

func NewAuthority

func NewAuthority(log *zap.Logger, httpClient *http.Client) *Authority

func (*Authority) AddJWKSURL

func (a *Authority) AddJWKSURL(u string)

AddJWKSURL adds a URL to the list of endpoints to fetch JWKS's from

func (*Authority) JWK

func (a *Authority) JWK(kid string) (jwk.Key, bool)

JWK takes a kid and loops through the JWK sets to find and return the corresponding key.

func (*Authority) NewCustomerClaims

func (a *Authority) NewCustomerClaims() jwtAuth.CustomerClaims

NewCustomerClaims returns a pointer to an empty customerClaims.

func (*Authority) Refresh

func (a *Authority) Refresh(ctx context.Context)

Refresh loops through the JWKS URLs and fetches the JWKS from each location. This is done in a goroutine so no response is given, however an error will be logged out if there are any issues.

Jump to

Keyboard shortcuts

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