authentication

OAuth2 Authorization Endpoint (POST)

Changed on

Initiates an OAuth2 authorization code flow via POST. Validates the request and redirects to the login UI for user authentication and consent.

post/oauth2/authorize

Request

  • Base URL
    https://{subdomain}.auth.{region}.nhost.run/v1
  • URL
    https://{subdomain}.auth.{region}.nhost.run/v1/oauth2/authorize
  • Auth
    none declared

Request body application/x-www-form-urlencoded

client_idstring required
redirect_uristring required
response_typestring required
scopestring nullable
statestring nullable
noncestring nullable
code_challengestring nullable
code_challenge_methodstring nullable

Only S256 is supported. The plain method is not allowed.

resourcestring nullable
promptstring nullable

Response

OAuth2 error response

errorstring required

OAuth2 error code

error_descriptionstring

Human-readable error description

Changes