POST/api/v2/auth/dex/principal/exchange
Dex connectorInternal integration
Backchannel endpoint used by Dex Principal connector to exchange a one-time code for identity data.
Request body application/json · handler.DexPrincipalConnectorExchangeRequest
Required7 of 7 fields
connectorIDstringrequired
applicationBindingIDstring · uuidrequired
callbackURLstringrequired
statestringrequired
noncestringrequired
codestringrequired
2 fields
groupsboolean
offlineAccessboolean
Responses
200
OK
handler.DexPrincipalConnectorIdentityResponse · 7 fields
userIDstringrequired
usernamestringrequired
preferredUsernamestringrequired
emailstringrequired
emailVerifiedbooleanrequired
groupsarray of stringrequired
refreshHandlestring
403
Access denied for Dex required-group handling.
handler.DexPrincipalConnectorAccessDeniedResponse · 2 fields
503
Service Unavailable
Common errors: 400 401 413 429 500 504. They mean the same for every operation, see Errors.