Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IDTokenValidator ¶
type IDTokenValidator struct {
// contains filtered or unexported fields
}
IDTokenValidator is used to validate ID tokens retrieved from Auth0.
func New ¶
func New( ctx context.Context, domain string, clientID string, clientSecret string, idTokenSigningAlg string, opts ...Option, ) (*IDTokenValidator, error)
New creates and returns a new IDTokenValidator.
func (*IDTokenValidator) Validate ¶
func (i *IDTokenValidator) Validate(idToken string, optional ValidationOptions) error
Validate validates the provided ID token against the values provided during the IDTokenValidator creation.
type Option ¶
type Option func(*IDTokenValidator)
Option is used for passing options to an `IDTokenValidator`.
func WithClockTolerance ¶
WithClockTolerance configures the allowed clock tolerance when validating time based claims.
func WithHTTPClient ¶
WithHTTPClient configures the HTTP Client used by the JWKS fetcher.
Click to show internal directories.
Click to hide internal directories.