UserInfo
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
| Aspect | Behavior |
|---|---|
| Endpoint | GET /oauth2/userinfo |
| Authentication | The access token must include the openid scope |
| Token type | Accepts Bearer; also accepts DPoP when the token is sender-constrained |
| Response formats | JSON (default), JWS (signed), JWE (encrypted), NESTED_JWT (signed then encrypted) |
| Format selection | Configured per application on userInfo.responseType |
| Claims returned | Filtered by the scopes the access token carries. See Claims & Scopes |
| Custom attributes | Configurable per application via userInfo.userAttributes |
| Invalid or expired token | 401 Unauthorized |
Token missing the openid scope | 403 Forbidden with insufficient_scope |
Response Formats
| Format | Content-Type | When to use |
|---|---|---|
JSON | application/json | Default. Plain JSON object. |
JWS | application/jwt | When the client must verify integrity of the response cryptographically. |
JWE | application/jwt | When the response must be confidential end-to-end (e.g. crosses an intermediary). Requires an OAuth client certificate. |
NESTED_JWT | application/jwt | Sign-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:
- Console
- Dynamic Client Registration
- Open Applications or Agents in the Choreo Identity & Access Management Console and select your client.
- Open the Token tab and find the UserInfo section.
- Pick the Response type (
JSON/JWS/JWE/NESTED_JWT). - 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. - Choose the User attributes to return. These typically mirror the ID Token attributes.
- Save.
POST /oauth2/dcr/register
Content-Type: application/json
{
"client_name": "My App",
"redirect_uris": ["https://app.example.com/callback"],
"grant_types": ["authorization_code"],
"response_types": ["code"],
"userinfo_encrypted_response_alg": "RSA-OAEP-256",
"userinfo_encrypted_response_enc": "A256GCM",
"jwks_uri": "https://app.example.com/.well-known/jwks.json"
}
Signed responses use the deployment's signing key, unless the client selects an algorithm with userinfo_signed_response_alg at registration. Encrypted responses require userinfo_encrypted_response_alg, userinfo_encrypted_response_enc, and a client certificate (jwks or jwks_uri). See Token Formats for the full algorithm tables.
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_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"
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 protocol that defines UserInfo
- Claims & Scopes, how the returned claim set is determined
- Token Formats, JWS, JWE, NESTED_JWT details
- DPoP, when the access token is sender-constrained
Was this page helpful?