Docs
Live demo
POST/api/v2/admin/sign-in-methods
Signed-in sessionConsole session only

Add a sign-in method to the console: the bundled Dex gets a connector with the id console-<name>, the client secret goes to OpenBao. github, google and microsoft need client_id and client_secret, microsoft also tenant, oidc also issuer (https). gitlab takes connector_id of a GitLab connector for the address and client_id and client_secret of the GitLab application. ldap takes connector_id of an LDAP connector and signs in to its server. A new method shows on the sign-in page after it is saved on GET /admin/sign-in-page. A person signs in with it only when Principal can match the account: a connector of the same provider imported it, or an administrator added it to the person by email.

Request body application/json · ConsoleSignInMethodRequest

Required2 of 8 fields
typestringrequired
githubgooglemicrosoftoidcgitlabldap
namestringrequired
max length 64
Optional6 fields
client_idstring
client_secretstring
issuerstring
tenantstring
hosted_domainstring
connector_idstring

Responses

201

The sign-in method

ConsoleSignInMethodResponse · 10 fields
idstringrequired
typestringrequired
githubgooglemicrosoftoidcgitlabldap
namestringrequired
client_idstring
issuerstring
tenantstring
hosted_domainstring
connector_idstring
created_atstring · date-timerequired
updated_atstring · date-timerequired
400

A field is invalid and field_errors names it, or Dex did not accept the method. Nothing changed.

401

Authentication required

503

Principal can't reach the bundled Dex. Nothing changed.

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

↑ ↓ to moveEnter to openEsc to close