OAuth2 authorization request (POST - process authorization).
CoderSessionTokenCoder-Session-Token<token>client_id*stringClient ID
state?stringA random unguessable string, echoed back on the callback
response_type*"code"Response type
"code"redirect_uri?stringRedirect here after authorization
scope?stringSpace-separated scopes to request. Each must be supported by this deployment, and the app's allowlist, when it has one, must cover the permissions requested rather than name each scope. Defaults to that allowlist, or to coder:all for an app with no allowlist
code_challenge*stringPKCE code challenge, 43 to 128 characters from [A-Za-z0-9-._~] (RFC 7636)
code_challenge_method?"S256"PKCE challenge method. S256 only; omitting it means S256
"S256"resource?stringRFC 8707 resource indicator: an absolute URI without a fragment
Redirects to the app's registered callback carrying either an authorization code or an OAuth2 error (RFC 6749 4.1.2.1)
The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.
curl -X POST \ "$CODER_URL/oauth2/authorize?client_id={client_id}&response_type={response_type}&code_challenge={code_challenge}" \ -H "Coder-Session-Token: $CODER_SESSION_TOKEN"