Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultSigner ¶
type DefaultSigner struct {
// contains filtered or unexported fields
}
func NewSignerDefault ¶
func NewSignerDefault(r FetcherRegistry) *DefaultSigner
type FetcherDefault ¶
func NewFetcherDefault ¶
func NewFetcherDefault(l *logrusx.Logger, cancelAfter time.Duration, ttl time.Duration, opts ...FetcherOption) *FetcherDefault
NewFetcherDefault returns a new JWKS Fetcher with:
- cancelAfter: If reached, the fetcher will stop waiting for responses and return an error.
- waitForResponse: While the fetcher might stop waiting for responses, we will give the server more time to respond and add the keys to the registry unless waitForResponse is reached in which case we'll terminate the request.
func (*FetcherDefault) ResolveKey ¶
func (*FetcherDefault) ResolveSets ¶
type FetcherOption ¶ added in v0.40.1
type FetcherOption func(f *FetcherDefault)
func WithURLMux ¶ added in v0.40.1
func WithURLMux(mux *blob.URLMux) FetcherOption
type FetcherRegistry ¶
type FetcherRegistry interface {
CredentialsFetcher() Fetcher
}
type SignerRegistry ¶
type SignerRegistry interface {
CredentialsSigner() Signer
}
type ValidationContext ¶
type Verifier ¶
type Verifier interface { Verify( ctx context.Context, token string, r *ValidationContext, ) (*jwt.Token, error) }
type VerifierDefault ¶
type VerifierDefault struct {
// contains filtered or unexported fields
}
func NewVerifierDefault ¶
func NewVerifierDefault(f FetcherRegistry) *VerifierDefault
func (*VerifierDefault) Verify ¶
func (v *VerifierDefault) Verify( ctx context.Context, token string, r *ValidationContext, ) (*jwt.Token, error)
type VerifierRegistry ¶
type VerifierRegistry interface {
CredentialsVerifier() Verifier
}
Click to show internal directories.
Click to hide internal directories.