Start consumer social sign-in
GET /api/v1/consumer-auth/social/{provider}/redirect
Starts the Google or Apple browser OAuth round-trip. Browser requests are redirected to the provider; callers requesting JSON receive authorize_url instead. Missing provider configuration returns 501 rather than fabricating credentials.
This operation needs no authentication.
Parameters
providerstring path requiredOne of:"google","apple"return_tostring (uri) queryAllowlisted builder return URL used after the browser round-trip.
Length: at most 2048 charactersjsonboolean queryReturn JSON containing authorize_url instead of a browser redirect.
Responses
200 JSON caller response
application/json object
authorize_urlstring (uri)
Generated sample
{
"authorize_url": "https://example.com"
}302 Redirect to the configured provider authorization endpoint
404 unknown_provider
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
429 Rate limit exceeded
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
text/html string
501 social_not_configured
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
503 consumer_auth_disabled
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.