OidcOAuthConfig
OAuth/OpenID Connect configuration.
OAuth installs a provider-specific login route and callback route. The callback requires an ID token and the openid scope, then passes the verified OidcToken.Id to onAuthenticated.
Browser sessions are enabled by default. Customize them with sessions or opt out with disableSessions. Plugin-managed refresh and logout routes require sessions. When sessions are disabled, onAuthenticated is required so verified token material is not discarded.
Properties
OAuth client secret. Required when OAuth is configured.
Code challenge method used for PKCE (RFC 7636) during the authorization code flow.
When true, requests the OpenID Provider UserInfo endpoint after token exchange and uses that response for OidcToken.Id.userInfo.
Configures the OAuth login route URI.
Configures the OAuth callback route URI.
Optional resource indicators added to authorization, token, and refresh requests.
Symmetric key used to encrypt the in-flight OAuth state cookie carrying state, nonce, and the PKCE code verifier between the login redirect and the callback.
Client authentication method for token endpoint requests: authorization code exchange and token refresh.
Functions
Disables browser sessions for this OAuth flow.
Configures the plugin-managed logout route.
Configures the plugin-managed logout route and includes post_logout_redirect_uri in RP-initiated logout.
Sets the handler called after a successful OAuth/OIDC login.
Sets the handler called when OIDC verification fails after token exchange.
Configures the plugin-managed session refresh route.
Configures the OIDC session for this OAuth flow, including cookie transport and CSRF protection.