Class OidcAuthenticationHandler

java.lang.Object
org.mockserver.authentication.oidc.OidcAuthenticationHandler
All Implemented Interfaces:
AuthenticationHandler

public class OidcAuthenticationHandler extends Object implements AuthenticationHandler
Control-plane authentication handler for an external OIDC IdP: verifies an Authorization: Bearer <jwt> access token's signature against the IdP's JWK set, asserts issuer, audience, exp/nbf and required scopes, and surfaces the VERIFIED sub as the principal (source verified-oidc) along with a redaction-safe subset of claims and the normalised scope set.

The JWK set is resolved either directly from controlPlaneOidcJwksUri, or by fetching {issuer}/.well-known/openid-configuration and reading its jwks_uri. Off by default — only constructed when controlPlaneOidcAuthenticationRequired is enabled.

The raw token is NEVER stored or logged; only the redacted claim subset is exposed.