completeOidcLogin
POST/api/v1/auth/oidc/callback
On the installation's host, with the code and state Zitadel
returned to its callback page: finds the tenant by the state's
slug and the login by the state, once and within 10 minutes,
redeems the code, validates the ID token (docs/architecture.md
§12), creates the person at their first login, syncs the
memberships of the teams with an IdP group from the groups claim,
makes an inactive person active again when they are then in a team
or hold a tenant role (docs/on-call.md §1) and sets
last_login_at; audited as a login. The answer is the URL of the
tenant's host that takes the login over, with a code in its
fragment, valid 60 s and once; only the host of an existing
tenant, so no redirect elsewhere.
Request
Responses
- 200
- 401
- 403
The tenant's host takes the login over
auth.oidc: unknown, used or expired state, Zitadel refused the code, or the ID token is invalid, of another organization or without the tenant's grant (docs/architecture.md §12)
person.inactive: the person is inactive and the login gave them no team (docs/on-call.md §1); no session