OAuth

Oauth Authorize Post

OAuth 2.0 authorization endpoint (POST).

This endpoint receives the user's consent (with selected organization and project) and generates an authorization code.

RFC 8707: The resource parameter identifies the target resource server.

When called with Accept: application/json, returns the redirect URL as JSON instead of a 303 redirect. This avoids CSP form-action restrictions that block cross-origin redirects in the OAuth flow's redirect chain.

post/oauth/authorize

Request

Cookies

logfire_tokenstring password nullable

Request body application/x-www-form-urlencoded

client_idstring required
redirect_uristring required
scopestring required
organization_idstring uuid required
project_idstring uuid nullable
statestring nullable
code_challengestring nullable
code_challenge_methodstring nullable
resourcestring nullable
csrf_tokenstring password nullable
claimsstring nullable

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.