Class OidcAuthorizationCodeCallback

java.lang.Object
org.mockserver.oidc.OidcAuthorizationCodeCallback
All Implemented Interfaces:
ExpectationCallback<HttpResponse>, ExpectationResponseCallback

public class OidcAuthorizationCodeCallback extends Object implements ExpectationResponseCallback
Mock OIDC /authorize endpoint implementing the OAuth2 authorization-code grant.

This is a mock — there is no login UI or consent screen. It accepts the standard authorization request query parameters, deterministically issues an opaque authorization code, records the code (with the redirect_uri and any PKCE challenge) in OidcAuthorizationStore, and 302-redirects the user agent back to redirect_uri?code=<code>&state=<state>.

The matching redirect_uri and PKCE code_verifier are validated later when the code is exchanged at /token by OidcTokenCallback.

  • Constructor Details

    • OidcAuthorizationCodeCallback

      public OidcAuthorizationCodeCallback()
  • Method Details