Skip to content
Sign in Create account

Start Google sign-in

GET /api/v1/auth/social/google/redirect

Creates a sign-in state and redirects to Google, or returns an authorization URL when JSON is requested.

This operation needs no authentication.

Parameters

  • return_to string (uri) query

    Allowlisted portal return URL.

  • intent string query

    Portal authentication intent.

    One of: "signin", "signup"
  • json boolean query

    Return the authorization URL as JSON when true.

Responses

200 Authorization URL when JSON is requested.

application/json PrivacySocialAuthorize

  • authorize_url string (uri) required

Generated sample

{
  "authorize_url": "https://example.com"
}

302 Redirect to Google authorization endpoint.

429 The request rate limit was exceeded.

application/json PrivacyError

  • error object required
    • code string
    • kid string
    • message string
    • ref string
    • type string
  • errors object

    Other keys: array of string

  • message string

text/html string

501 Social sign-in is not configured.

application/json PrivacyError

  • error object required
    • code string
    • kid string
    • message string
    • ref string
    • type string
  • errors object

    Other keys: array of string

  • message string