Skip to main content
POST
/
sso
/
callback
/
ldap
LDAP Callback
curl --request POST \
  --url https://grantex-auth-dd4mtrt2gq-uc.a.run.app/sso/callback/ldap \
  --header 'Content-Type: application/json' \
  --data '
{
  "username": "alice",
  "password": "<string>",
  "connectionId": "sso_conn_03HX...",
  "org": "dev_01HXYZ..."
}
'
{
  "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
username
string
required

The user's LDAP username (e.g. uid, sAMAccountName, or full DN)

Example:

"alice"

password
string<password>
required

The user's LDAP password for bind authentication

connectionId
string
required

The SSO connection ID for the LDAP directory

Example:

"sso_conn_03HX..."

org
string

Optional organization identifier for domain-based routing

Example:

"dev_01HXYZ..."

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>