Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidToken = errors.New("invalid oidc token") ErrJWKSFetch = errors.New("jwks fetch failed") ErrUnsupportedKey = errors.New("unsupported oidc key") ErrUnsupportedAlg = errors.New("unsupported oidc signing algorithm") ErrMissingKey = errors.New("missing oidc signing key") ErrMissingRequiredScope = errors.New("missing required oidc scope") )
Functions ¶
func NewVerifier ¶
func NewVerifier() appauth.OIDCVerifier
Types ¶
type OAuth2TokenValidator ¶
type OAuth2TokenValidator struct {
// contains filtered or unexported fields
}
OAuth2TokenValidator adapts the shared OIDC verifier to the MCP-plane JWTValidator port: it resolves key material via OIDC discovery when the config has no explicit JWKS URL and yields an identity.Principal carrying the raw token for downstream exchange/passthrough.
func NewOAuth2TokenValidator ¶
func NewOAuth2TokenValidator(verifier appauth.OIDCVerifier, client *http.Client) *OAuth2TokenValidator
type Verifier ¶
type Verifier struct {
// contains filtered or unexported fields
}
func NewVerifierWithCache ¶
Click to show internal directories.
Click to hide internal directories.