Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMissingAuthorization = errors.New("authorization header required") ErrInvalidBearerFormat = errors.New("authorization must use bearer scheme") )
View Source
var ( ErrInvalidIssuer = errors.New("invalid oidc issuer") ErrMissingAudience = errors.New("missing oidc audience") )
View Source
var ErrInvalidToken = errors.New("invalid or expired token")
Functions ¶
func BearerToken ¶
BearerToken parses a bearer token from an Authorization header. It returns only public, stable errors and never includes token material.
Types ¶
type OIDCVerifier ¶
type OIDCVerifier struct {
// contains filtered or unexported fields
}
OIDCVerifier verifies ID tokens using OIDC discovery and the provider JWKS. One verifier is created per accepted audience so the upstream library keeps ownership of issuer, signature, expiry and authorized-party validation.
func NewOIDCVerifier ¶
func NewOIDCVerifier(ctx context.Context, cfg Config) (*OIDCVerifier, error)
NewOIDCVerifier discovers the OIDC provider and prepares verifiers for every configured audience. Discovery must succeed before the verifier is usable.
Click to show internal directories.
Click to hide internal directories.