3.0.1 · AVAILABLE

OIDC application integration

Use tenant discovery and Authorization Code with PKCE S256 against the configured issuer.

Register the application

In the organization console, create an application with an exact implemented callback URI. Use a public client for a browser/native app without a protected secret; use a confidential client for a server that can protect its credentials. Never ship management API keys or client secrets in browser code. Do not use wildcard callbacks.

The management operation is POST /api/v1/organizations/{org_id}/clients. Its request uses name, redirect_uris, optional client_id, grant_types, response_types, post_logout_redirect_uris and is_public; inspect the actual API schema. Do not send the old recipe fields client_name, scopes or token_endpoint_auth_method to that operation. Organization identifiers and slugs are not interchangeable API parameters.

Discover endpoints

Fetch https://id.example.test/acme/.well-known/openid-configuration for tenant acme. Validate the expected issuer, HTTPS transport and configured endpoints. Use the returned authorization, token, UserInfo and JWKS URLs rather than guessing routes. The issuer is stable configuration, not the console host or API origin.

Run the authorization code flow

Generate cryptographically random state, nonce and a new PKCE verifier per transaction. Send response_type=code, the registered client_id, exact redirect_uri, scope=openid, state, nonce, code_challenge_method=S256 and the SHA-256 base64url challenge to the discovered authorization endpoint. Add only scopes actually authorized for that client.

Validate state at the callback, then redeem the code at the discovered token endpoint with the exact callback URI and code_verifier; a confidential client also uses its registered authentication method. Validate ID token issuer, audience, signature, nonce and expiry using the applicable OIDC profile. The access token belongs to the target resource; it is not automatically a console administrator credential.

Always send PKCE S256. Do not assume the ordinary client creation API exposes a registration-wide “Require PKCE” field; PKCE challenge and verifier checks apply to the transaction and supported profiles.

Sessions, refresh and logout

Use newly established sessions after upgrading; old cookie continuity is not required. Refresh only through the supported grant and original client authentication. Use discovered logout behavior and registered post-logout destinations. Local application logout, Clavex session logout and upstream federation logout have different effects. Test RP-bound confirmation in your actual browser integration.

For revocation, see the approved ownership contract. Do not weaken DPoP or mTLS requirements for token use or refresh.

Clavex 3.0.1 is publicly available. Release scope · Evidence and limitations · Editions and licensing