Start sign-in with an identity provider

http
GET /auth/{provider}

Start identity provider authentication.

Parameters

NameInRequiredDescription
providerpathYes
redirect_uriqueryApplication URL after sign-in. The session is delivered in a cookie or token query parameter according to the redirect target.
codequeryProvider callback code. Open the provider sign-in URL without it to start authorization; the provider returns code and state to this same URL.
statequeryCSRF state token (maximum 4096 characters)
errorqueryOAuth error code (for example, access_denied when user cancels).
error_descriptionqueryHuman-readable error description
issqueryGoogle callbacks only: issuer metadata. Ignored otherwise.
scopequeryGoogle callbacks only: granted scopes metadata. Ignored otherwise.
authuserqueryGoogle callbacks only: account index metadata. Ignored otherwise.
hdqueryGoogle callbacks only: Workspace hosted-domain metadata. Ignored otherwise.
promptqueryGoogle callbacks only: prompt metadata. Ignored otherwise.

Responses

StatusDescription
302Redirect 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.
400Sign-in refused: disabled provider, invalid redirect or state, or an unverified or conflicting provider account.
429Too many authentication requests from this client
500Unexpected sign-in failure
503OAuth state or consumption outcome could not be confirmed. Retry after recovery or start a new authorization flow.