Skip to main content

Client Authentication Methods

Cloud has the newest features. Some may not be in a release yet; the newest release is Identity & Access Management 7.3.0.

Whenever a client calls a protected endpoint at Choreo Identity & Access Management, such as token, introspection, revocation, PAR, or CIBA, it identifies itself with a client_id. Confidential clients must additionally authenticate by proving they hold the client's credentials; public clients (none) present only the client_id and carry no credentials. The token_endpoint_auth_method setting on the application picks how the client authenticates. The choice is fixed per application and applies uniformly to every protected endpoint.

Choreo Identity & Access Management supports four methods, three for confidential clients and one (none) for public clients. The relevant specs are RFC 6749 §2.3, RFC 6749 §2.1 (public clients), and RFC 7523 (JWT bearer client authentication).

Comparing the Methods​

MethodCredential typeWhere it travelsConfidentialityUse when
client_secret_basicShared secretAuthorization: Basic headerTLS-protectedServer-side apps that can store a secret. Default.
client_secret_postShared secretPOST body parametersTLS-protectedClients that can't set custom headers
private_key_jwtAsymmetric keySigned JWT in POST bodyNo secret on the wireHigh-security deployments; FAPI; rotating credentials without redeployment
noneNoneNo credentialsNonePublic clients (browser apps, mobile apps) that can't store a secret

client_secret_basic​

The default for new confidential clients. Credentials travel in a standard HTTP Authorization: Basic header, Base64-encoded.

POST /oauth2/token HTTP/1.1
Host: <DATA_PLANE_HOST>
Authorization: Basic Y2xpZW50X2lkOmNsaWVudF9zZWNyZXQ=
Content-Type: application/x-www-form-urlencoded

grant_type=client_credentials&scope=api:read

The Base64 payload is the literal string client_id:client_secret. Choreo Identity & Access Management URL-decodes neither the client ID nor the secret. Pass them verbatim.

client_secret_post​

Same credentials as client_secret_basic, but in the body instead of the header. Useful when the HTTP client cannot set custom headers, or when a corporate proxy strips them.

POST /oauth2/token HTTP/1.1
Host: <DATA_PLANE_HOST>
Content-Type: application/x-www-form-urlencoded

grant_type=client_credentials
&client_id=$CLIENT_ID
&client_secret=$CLIENT_SECRET
&scope=api:read

private_key_jwt​

The client signs a short-lived JWT assertion with its private key. Choreo Identity & Access Management verifies the signature against the application's registered public key (either inline JWKS or a JWKS_URI it fetches). No secret ever crosses the wire.

Registering Client Keys​

The OAuth client configuration must have either a JWKS (inline JSON Web Key Set) or a JWKS_URI (HTTPS URL Choreo Identity & Access Management fetches) configured. See OAuth client certificate below for the rules.

Assertion Claims​

The client builds and signs a JWT with these claims:

ClaimValue
issThe client_id
subThe client_id
audThe token endpoint URL (https://<DATA_PLANE_URL>/oauth2/token)
jtiA unique identifier; Choreo Identity & Access Management rejects replays
expRequired. Must not be more than oauth.client_assertion.max_lifetime seconds after iat, or after the current time when iat is absent
iatOptional. When present, must not be more than jwt.leeway seconds in the future or more than oauth.client_assertion.max_iat_age seconds in the past

Example Request​

POST /oauth2/token HTTP/1.1
Host: <DATA_PLANE_HOST>
Content-Type: application/x-www-form-urlencoded

grant_type=client_credentials
&client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer
&client_assertion=eyJhbGciOiJSUzI1NiIs...
&scope=api:read

The client_assertion_type value is fixed: urn:ietf:params:oauth:client-assertion-type:jwt-bearer.

Supported Assertion Algorithms​

RS256, RS512, PS256, ES256, ES384, ES512, EdDSA. Symmetric algorithms (HS*) are not accepted.

none​

Reserved for public clients, applications that cannot keep a secret, like single-page apps and native mobile apps. No credentials travel in the request; client identity is asserted by the client_id parameter alone.

Public clients must use PKCE on the authorization code flow. Choreo Identity & Access Management sets pkceRequired automatically when token_endpoint_auth_method is none.

POST /oauth2/token HTTP/1.1
Host: <DATA_PLANE_HOST>
Content-Type: application/x-www-form-urlencoded

grant_type=authorization_code
&code=$CODE
&redirect_uri=https://app.example.com/callback
&client_id=$CLIENT_ID
&code_verifier=$CODE_VERIFIER

Where Each Method Applies​

The chosen method applies uniformly to every endpoint that requires client authentication:

EndpointMethod enforced
POST /oauth2/tokenYes
POST /oauth2/introspectYes
POST /oauth2/revokeYes
POST /oauth2/parYes
POST /oauth2/bc-authorize (CIBA)Yes
POST /oauth2/dcr/registerNo: DCR is not authenticated with token_endpoint_auth_method. When secured, it uses a separate authorization model.

OAuth Client Certificate​

A client certificate is the public-key material Choreo Identity & Access Management stores in the OAuth client configuration (inboundAuthConfig[].config.certificate) and uses to:

  • Verify signed JWT assertions for private_key_jwt client authentication.
  • Encrypt ID tokens when Token Formats for that application is JWE or NESTED_JWT.
  • Sign or encrypt UserInfo responses when UserInfo response format requires it.

The OAuth client certificate field has three possible types:

TypeDescription
NoneNo certificate configured. The application cannot use private_key_jwt, encrypted ID tokens, or encrypted UserInfo.
JWKSInline JSON Web Key Set provided as a JSON object in the OAuth client configuration.
JWKS_URIHTTPS URL of the application's JWKS endpoint. Choreo Identity & Access Management fetches the public keys from this URL. The URL must use HTTPS.

JWKS and JWKS_URI are mutually exclusive: setting both on the same application returns an error.

This certificate is separate from Choreo Identity & Access Management's own signing keys (see JWKS), which is the public-key endpoint resource servers use to verify Choreo Identity & Access Management-issued tokens.

Try It in Choreo Identity & Access Management​

  1. Open Applications or Agents in the Choreo Identity & Access Management Console and select your client.
  2. Open the Advanced tab and find the Client Authentication section.
  3. Select one of client_secret_basic, client_secret_post, private_key_jwt, or none.
  4. For private_key_jwt, also configure a Certificate (JWKS or JWKS_URI) in the OAuth client settings.
  5. Save.
Deploy your changes

Saving a change does not make it live. You author in the control plane, and your users sign in on a separate data plane, so a change takes effect in an environment only after you deploy it. Go to Deploy, deploy the latest version to your first environment, then promote it to the next environment when you are ready.

Auto-sync deploys saved changes to your first environment within seconds. Turning it on is your choice, per project. See Deploy a Version, or learn why you deploy and how auto-sync works.

Was this page helpful?