Docs
Live demo

Submit Principal-backed Dex connector password login

POST/api/v2/auth/dex/principal/login

Browser form submit used by Principal-created users to mint a one-time code for the Dex callback.

Parameters

Query5 required of 7
connector_idstringqueryrequired

Dex connector identifier configured on the OAuth client binding.

application_binding_idstring · uuidqueryrequired

Principal application Dex binding identifier.

callback_urlstringqueryrequired

Dex callback URL that receives the one-time code.

statestringqueryrequired

OIDC state value to echo back to Dex.

noncestringqueryrequired

OIDC nonce value bound to the one-time code.

scope_groupsbooleanquery

Whether Dex requested groups in the identity response.

scope_offline_accessbooleanquery

Whether Dex requested a refresh handle.

Request body application/x-www-form-urlencoded

Required2 of 2 fields
loginstringrequired
passwordstring · passwordrequired

Responses

302

Redirect to Dex callback with code.

303

The password matched and the account has a second factor. The pending sign-in stays on the server, its challenge id is set in an HttpOnly cookie, and the browser continues to the second-factor page.

401

Invalid username or password.

text/html

403

Password sign-in is off for the organization, or the organization requires a second factor the account has not set up yet. No Dex code is issued.

text/html

503

Service Unavailable

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

↑ ↓ to moveEnter to openEsc to close