Skip to content

OAuth2 Authorization Endpoint (POST)

POST
/oauth2/authorize

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

OAuth2 authorization request parameters (RFC 6749 Section 4.1.1).

object
client_id
required
string
redirect_uri
required
string
response_type
required
string
scope
string
nullable
state
string
nullable
nonce
string
nullable
code_challenge
string
nullable
code_challenge_method

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

string
nullable
resource
string
nullable
prompt
string
nullable

Redirect to login UI or back to client with error

Location
string format: uri

OAuth2 error response

object
error
required

OAuth2 error code

string
error_description

Human-readable error description

string