http
GET /auth/{provider}Start identity provider authentication.
Parameters
| Name | In | Required | Description |
|---|---|---|---|
provider | path | Yes | |
redirect_uri | query | Application URL after sign-in. The session is delivered in a cookie or token query parameter according to the redirect target. | |
code | query | Provider callback code. Open the provider sign-in URL without it to start authorization; the provider returns code and state to this same URL. | |
state | query | CSRF state token (maximum 4096 characters) | |
error | query | OAuth error code (for example, access_denied when user cancels). | |
error_description | query | Human-readable error description | |
iss | query | Google callbacks only: issuer metadata. Ignored otherwise. | |
scope | query | Google callbacks only: granted scopes metadata. Ignored otherwise. | |
authuser | query | Google callbacks only: account index metadata. Ignored otherwise. | |
hd | query | Google callbacks only: Workspace hosted-domain metadata. Ignored otherwise. | |
prompt | query | Google callbacks only: prompt metadata. Ignored otherwise. |
Responses
| Status | Description |
|---|---|
| 302 | Redirect to the provider consent screen, or back to the application after the callback. The provider returns to the same /auth/{provider} URL with code and state; these callback URLs are registered with each provider and remain unchanged. |
| 400 | Sign-in refused: disabled provider, invalid redirect or state, or an unverified or conflicting provider account. |
| 429 | Too many authentication requests from this client |
| 500 | Unexpected sign-in failure |
| 503 | OAuth state or consumption outcome could not be confirmed. Retry after recovery or start a new authorization flow. |