Skip to content
GitHubLog inStart free
cetra is not released yet. These docs describe the development version.

Finish an OAuth or OIDC login

GET
/api/auth/callback/{provider}
curl --request GET \
--url http://localhost:8080/api/auth/callback/example

Clears the login cookie. Success sets the session cookie and redirects to the saved relative path. Failure redirects to /login?error=<code>. Codes: invalid_state, provider_error, provider_unavailable, email_not_verified, domain_not_allowed, signup_closed, account_disabled, link_refused, setup_required, seat_limit, sso_unavailable, sso_required, saml_invalid, saml_unsupported. The provider is github, google, oidc:<name>, or sso (an org’s provider, started through /api/auth/sso/authorize).

provider
required
string

Provider id: github, google, or oidc:<name>.

code
string

Authorization code from the provider.

state
string

State value from the authorization redirect.

error
string

Error code from the provider, when it refused the login.

Redirect to the saved path, or to /login?error=<code> (invalid_state, provider_error, provider_unavailable, email_not_verified, domain_not_allowed, signup_closed, account_disabled, link_refused, setup_required).