Docs
Live demo
POST/api/v2/identities/{id}/auth-bindings
security:manageConsole session only

Bind a verified immutable (issuer, Dex connector id, upstream subject) key to a user identity. Unique collisions return 409 Conflict. Problem Details never contains email or mutable claims. An administrator with an enrolled second factor must have confirmed it within the re-authentication window (POST /auth/mfa/reauth). An API token makes this change only when it was issued with allow_security_changes.

Parameters

Path1 required of 1
idstring · uuidpathrequired

Identity ID (UUID)

Request body application/json · CreateIdentityAuthBindingRequest

Auth binding create request

Required3 of 3 fields
issuerstringrequired

Canonical issuer from the verified OIDC ID token.

min length 1 · max length 2048
dex_connector_idstringrequired

Dex connector id string (for example gitlab or principal), not connector_configs.id.

min length 1 · max length 255
subjectstringrequired

Immutable upstream subject from Dex federated_claims.user_id.

min length 1 · max length 1024

Responses

201

Created

IdentityAuthBindingResponse · 12 fields
idstring · uuidrequired
identity_idstring · uuidrequired
issuerstringrequired
dex_connector_idstringrequired
subjectstringrequired
statestringrequired
pending_confirmationactive
sourcestringrequired
legacyadminjitprovider_backfill
confirmed_bystring · uuid
can be null
confirmed_atstring · date-time
can be null
created_atstring · date-timerequired
updated_atstring · date-timerequired
last_login_atstring · date-time
can be null
403

Forbidden: the caller's roles do not grant the permission of the operation, or the administrator's second factor was not confirmed recently (details.reason=mfa_reauth_required), or the request uses an API token issued without allow_security_changes (details.reason=api_token_security_changes_not_allowed).

409

Binding already belongs to another identity. Also (details.error_code sign_in_of_other_organization: the sign-in belongs to a person of another organization.)

Common errors: 400 401 404 413 429 503 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close