Token Formats
OpenID Connect lets you control the cryptographic shape of two outputs: the ID Token and the UserInfo response. Choreo Identity & Access Management supports four formats and a curated set of algorithms, picked from the JOSE standards (RFC 7515 JWS, RFC 7516 JWE, RFC 7518 JWA).
The choice trades operational simplicity against confidentiality. JWS gives you integrity. JWE gives you confidentiality. NESTED_JWT gives you both.
Format Matrix
| Format | Applies to | Signed | Encrypted | Content-Type |
|---|---|---|---|---|
JSON | UserInfo only | ❌ | ❌ | application/json |
JWS | ID Token (default), UserInfo | ✅ | ❌ | application/jwt |
JWE | ID Token, UserInfo | ❌ | ✅ | application/jwt |
NESTED_JWT | ID Token, UserInfo | ✅ | ✅ | application/jwt |
For the ID Token, JWS is the default and the most widely supported. Pick JWE or NESTED_JWT only when the ID Token will traverse an untrusted intermediary that must not read its contents.
For UserInfo, JSON is the default. Switch to JWS when integrity matters; to JWE or NESTED_JWT when confidentiality matters.
Signing Algorithm (JWS)
Applies to JWS and the signing step of NESTED_JWT.
Choreo Identity & Access Management signs every token (access token, ID Token, and signed UserInfo response) with a deployment signing key. A deployment advertises the signing algorithms its configured keys support, and the requested algorithm selects a matching key, for example RS256 selects an RSA key, EdDSA selects an Ed25519 key, and ML-DSA-44, ML-DSA-65, or ML-DSA-87 selects the ML-DSA key with the matching parameter set.
A deployment can configure more than one signing key. A client can select which algorithm signs its ID Tokens and signed UserInfo responses, using id_token_signed_response_alg and userinfo_signed_response_alg at registration. The value must be one of the algorithms the deployment advertises, otherwise registration is rejected. When a client selects nothing, and for access tokens always, the deployment's signing key is used.
To see which algorithms a deployment signs with, read id_token_signing_alg_values_supported (and userinfo_signing_alg_values_supported) in the Server Metadata document, or inspect the published keys at the JWKS endpoint. Clients verify signatures against those keys, matching the token's kid header to the published key.
Supported Encryption Algorithms (JWE)
Applies to JWE and the encryption step of NESTED_JWT.
Key Management (alg)
| Algorithm | Description |
|---|---|
RSA-OAEP | RSA-OAEP with SHA-1 |
RSA-OAEP-256 | RSA-OAEP with SHA-256 (preferred) |
Both alg values are RSA-based, so the client certificate must contain an RSA encryption key (use: enc, or no use) that the selected alg can use.
Content Encryption (enc)
| Algorithm | Description |
|---|---|
A128CBC-HS256 | AES-128-CBC + HMAC-SHA-256 authentication tag |
A256GCM | AES-256 in Galois/Counter Mode (preferred when supported) |
Token Lifetimes
Access token and ID token lifetimes are configured per application. Both default to the server jwt.validity_period, which is 3600 seconds (one hour) unless changed.
| Setting | Default | Description |
|---|---|---|
token.accessToken.userConfig.validityPeriod | jwt.validity_period | Lifetime in seconds of access tokens issued for a user: the authorization code, CIBA, refresh token, token exchange, and JWT bearer (ID-JAG redemption) grants. When a client is saved without one, Choreo Identity & Access Management fills it in from the client's assertion.validityPeriod, or else from the server jwt.validity_period |
token.accessToken.clientConfig.validityPeriod | jwt.validity_period | Lifetime in seconds of access tokens a client obtains for itself with the client credentials grant. Choreo Identity & Access Management never fills it in on save, so when it is unset the server jwt.validity_period applies at runtime |
token.idToken.validityPeriod | jwt.validity_period | ID token lifetime in seconds. When a client is saved without one, Choreo Identity & Access Management fills it in from the client's assertion.validityPeriod, or else from the server jwt.validity_period |
Refresh tokens are governed separately. See Refresh Token.
Embedded User Attributes
The userAttributes array on each token type controls which user attributes are embedded as claims.
| Setting | Description |
|---|---|
token.accessToken.userAttributes | Attributes embedded in the access token payload. Standard claims (sub, iss, exp, …) are always included and cannot be removed. |
token.idToken.userAttributes | Attributes embedded in the ID token. Only attributes covered by the requested scopes are returned. See Claims & Scopes. |
Certificate Prerequisites
Encrypted responses (JWE, NESTED_JWT) and private_key_jwt client authentication require an OAuth client certificate: either an inline JWKS or a JWKS_URI Choreo Identity & Access Management can fetch. See OAuth client certificate for the full rules.
| Use case | Certificate required? | Reason |
|---|---|---|
JWS ID Token (default) | No | Choreo Identity & Access Management signs with its own key (see JWKS) |
JWE / NESTED_JWT ID Token | Yes | Encrypted to the client's public key |
JWS UserInfo | No | Choreo Identity & Access Management signs with its own key |
JWE / NESTED_JWT UserInfo | Yes | Encrypted to the client's public key |
private_key_jwt client auth | Yes | Verifying the client's signed assertion |
Try It in Choreo Identity & Access Management
- Console
- Dynamic Client Registration
- Open Applications or Agents in the Choreo Identity & Access Management Console and select your client.
- Open the Token tab.
- Use the ID token section to configure ID Token format and, for encrypted formats, encryption. Signing uses the deployment's signing key.
- Use the UserInfo section to configure the UserInfo response format.
- For encrypted responses, configure a Certificate in the OAuth client settings.
- Save.
Per RFC 7591 field names:
POST /oauth2/dcr/register
Content-Type: application/json
{
"client_name": "Secure App",
"redirect_uris": ["https://app.example.com/callback"],
"grant_types": ["authorization_code"],
"response_types": ["code"],
"id_token_encrypted_response_alg": "RSA-OAEP-256",
"id_token_encrypted_response_enc": "A256GCM",
"userinfo_encrypted_response_alg": "RSA-OAEP-256",
"userinfo_encrypted_response_enc": "A256GCM",
"jwks_uri": "https://app.example.com/.well-known/jwks.json"
}
Inspect What a Deployment Advertises
The supported algorithms are listed in the Server Metadata document, for example, id_token_signing_alg_values_supported and userinfo_encryption_enc_values_supported.
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.
Related Guides
- OpenID Connect, the spec that defines ID Token shape
- UserInfo, the endpoint whose response format is selected here
- JWKS, Choreo Identity & Access Management's signing keys
- Client Authentication Methods: OAuth client certificate, attaching the client's public key
Was this page helpful?