completeOidcLogin
POST/api/v1/auth/oidc/callback
The installation's callback, on any host: completes the login with
the code and state the IdP returned to the callback page. Takes
the login of the hub the state names, once and within its 10
minutes, redeems the code with the PKCE verifier, validates the ID
token (issuer, audience, nonce) and the hub's organization and
tenant (docs/architecture.md §11 Sign-in), creates or updates the
hub's oidc user with the group claim (docs/schema/hub.sql
app_user) and answers the URL that hands the login over to the
hub's host, with a code in its fragment valid 60 s
(redeemLoginHandoff). An ID token that signals group overage is
refused (docs/integrations.md §10). Audited as a login of the hub,
a refusal as an authentication failure.
Request
Responses
- 200
- 401
- 403
Signed in to the hub; the UI navigates to handoff_url
auth.oidc: unknown or expired state, the IdP refused the code, the ID token is invalid, or of another organization or without the tenant's grant
auth.groups_overage: the ID token carries no group list because the user has too many groups; the message names the supported setups