Skip to main content

Token Formats

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

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​

FormatApplies toSignedEncryptedContent-Type
JSONUserInfo only❌❌application/json
JWSID Token (default), UserInfo✅❌application/jwt
JWEID Token, UserInfo❌✅application/jwt
NESTED_JWTID 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)​

AlgorithmDescription
RSA-OAEPRSA-OAEP with SHA-1
RSA-OAEP-256RSA-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)​

AlgorithmDescription
A128CBC-HS256AES-128-CBC + HMAC-SHA-256 authentication tag
A256GCMAES-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.

SettingDefaultDescription
token.accessToken.userConfig.validityPeriodjwt.validity_periodLifetime 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.validityPeriodjwt.validity_periodLifetime 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.validityPeriodjwt.validity_periodID 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.

SettingDescription
token.accessToken.userAttributesAttributes embedded in the access token payload. Standard claims (sub, iss, exp, …) are always included and cannot be removed.
token.idToken.userAttributesAttributes 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 caseCertificate required?Reason
JWS ID Token (default)NoChoreo Identity & Access Management signs with its own key (see JWKS)
JWE / NESTED_JWT ID TokenYesEncrypted to the client's public key
JWS UserInfoNoChoreo Identity & Access Management signs with its own key
JWE / NESTED_JWT UserInfoYesEncrypted to the client's public key
private_key_jwt client authYesVerifying the client's signed assertion

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 Token tab.
  3. Use the ID token section to configure ID Token format and, for encrypted formats, encryption. Signing uses the deployment's signing key.
  4. Use the UserInfo section to configure the UserInfo response format.
  5. For encrypted responses, configure a Certificate in the OAuth client settings.
  6. Save.

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.

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?