Skip to main content

UserInfo

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

The UserInfo endpoint (OIDC Core §5.3) returns claims about the user whose access token authorizes the call. It is the canonical way for an OIDC client to get the user's claims without re-authenticating.

The endpoint is OIDC-specific: the access token must have been issued with the openid scope. Which claims come back depends on the scopes the token carries. See Claims & Scopes.

How It Works​

The client presents the access token as a Bearer (or DPoP) credential. Choreo Identity & Access Management resolves the user, applies scope-based filtering, and returns the claims in the configured response format.

How Choreo Identity & Access Management Implements It
AspectBehavior
EndpointGET /oauth2/userinfo
AuthenticationThe access token must include the openid scope
Token typeAccepts Bearer; also accepts DPoP when the token is sender-constrained
Response formatsJSON (default), JWS (signed), JWE (encrypted), NESTED_JWT (signed then encrypted)
Format selectionConfigured per application on userInfo.responseType
Claims returnedFiltered by the scopes the access token carries. See Claims & Scopes
Custom attributesConfigurable per application via userInfo.userAttributes
Invalid or expired token401 Unauthorized
Token missing the openid scope403 Forbidden with insufficient_scope

Response Formats​

FormatContent-TypeWhen to use
JSONapplication/jsonDefault. Plain JSON object.
JWSapplication/jwtWhen the client must verify integrity of the response cryptographically.
JWEapplication/jwtWhen the response must be confidential end-to-end (e.g. crosses an intermediary). Requires an OAuth client certificate.
NESTED_JWTapplication/jwtSign-then-encrypt, both properties. Requires an OAuth client certificate.

The signing and encryption algorithm tables live on the Token Formats page.

Try It in Choreo Identity & Access Management​

UserInfo is always available for tokens that carry the openid scope. To customize which claims it returns and what format they come back in:

  1. Open Applications or Agents in the Choreo Identity & Access Management Console and select your client.
  2. Open the Token tab and find the UserInfo section.
  3. Pick the Response type (JSON / JWS / JWE / NESTED_JWT).
  4. Signed responses (JWS, NESTED_JWT) use the deployment's signing key. For encrypted responses (JWE, NESTED_JWT), pick the encryption algorithms and configure a certificate.
  5. Choose the User attributes to return. These typically mirror the ID Token attributes.
  6. Save.

Call the Endpoint​

curl https://<DATA_PLANE_URL>/oauth2/userinfo \
-H "Authorization: Bearer $ACCESS_TOKEN"

JSON response:

{
"sub": "user-456",
"name": "Ada Lovelace",
"given_name": "Ada",
"family_name": "Lovelace",
"email": "[email protected]",
"email_verified": true
}

email_verified states whether the user verified the email address in the same response, as recorded at sign-in. See Verified Contact Claims.

Signed (JWS) response: the body is a JWT, not JSON:

HTTP/1.1 200 OK
Content-Type: application/jwt

eyJhbGciOiJSUzI1NiIs...

DPoP-Bound Tokens​

If the access token is DPoP-bound, send a fresh DPoP proof on the UserInfo request:

curl https://<DATA_PLANE_URL>/oauth2/userinfo \
-H "Authorization: DPoP $ACCESS_TOKEN" \
-H "DPoP: $DPOP_PROOF_JWT"
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?