Skip to content

Authorize

GET /oauth/authorize

Validate, then hand the browser to the console’s consent screen.

Everything is validated before anything is redirected, and the ordering is the open-redirect defence: the client and the exact redirect URI are settled first, so a refusal above that line is rendered here rather than bounced off an address the request supplied. Only after both are known good does this endpoint send the browser anywhere.

The parameters cross to the console in the URL, and there is no pending-request row behind them. The consent endpoint re-validates every one — see AuthorizationParams.

Every parameter is declared optional and then required by :func:_params, including the three that are not. Declared required, FastAPI answers a missing one with a 422 in this platform’s envelope — the second error shape this module exists not to publish, on the one request a client makes before it has any idea what this server is.

NameInTypeNotes
client_idquerystring | nulloptional—
redirect_uriquerystring | nulloptional—
code_challengequerystring | nulloptional—
response_typequerystringoptionalDefault "code".
code_challenge_methodquerystringoptionalDefault "S256".
scopequerystring | nulloptional—
statequerystring | nulloptional—
resourcequerystring | nulloptional—
StatusDescriptionBody
200Successful Response—
422Validation ErrorHTTPValidationError
Terminal window
curl -X GET https://your-deployment.example.com/oauth/authorize