Skip to content
Skip to Content
Coder Docs

Get OIDC claims for the authenticated user

GET
/api/v2/users/oidc-claims

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Response Body

OK

application/json
  1. response
claims?

Claims are the merged claims from the OIDC provider. These are the union of the ID token claims and the userinfo claims, where userinfo claims take precedence on conflict.

The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.

curl -X GET \	"$CODER_URL/api/v2/users/oidc-claims" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN"
Example Response200
{  "claims": {}}