Skip to main content
POST
/
sso
/
callback
/
oidc
OIDC Callback
curl --request POST \
  --url https://grantex-auth-dd4mtrt2gq-uc.a.run.app/sso/callback/oidc \
  --header 'Content-Type: application/json' \
  --data '
{
  "code": "<string>",
  "state": "<string>",
  "redirect_uri": "<string>"
}
'
{
  "sessionId": "<string>",
  "email": "<string>",
  "name": "<string>",
  "sub": "<string>",
  "groups": [
    "<string>"
  ],
  "mappedScopes": [
    "<string>"
  ],
  "principalId": "<string>",
  "developerId": "<string>",
  "expiresAt": "2023-11-07T05:31:56Z"
}

Body

application/json
code
string
required

Authorization code from the IdP

state
string
required

State parameter for CSRF protection

redirect_uri
string<uri>

Redirect URI (must match the one used in the authorize request)

Response

SSO callback result with session and user info

sessionId
string

SSO session ID

email
string
name
string
sub
string

Subject identifier from the IdP

groups
string[]
mappedScopes
string[]
principalId
string

JIT-provisioned principal ID (if applicable)

developerId
string
expiresAt
string<date-time>