OAuth2 authorization request (GET - show authorization page).
Changed onRequest
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- URL/oauth2/authorize
- AuthAPI key in header Coder-Session-Token
Query parameters
Client ID
A random unguessable string, echoed back on the callback
Response type
Redirect here after authorization
Space-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
PKCE code challenge, 43 to 128 characters from [A-Za-z0-9-._~] (RFC 7636)
PKCE challenge method. S256 only; omitting it means S256
RFC 8707 resource indicator: an absolute URI without a fragment
Response
Returns HTML authorization page
Changes
- breaking
added the new required
queryrequest parametercode_challenge - info
added the new optional
queryrequest parametercode_challenge_method - info
added the new optional
queryrequest parameterresource - info
the
queryrequest parameterstatebecame optional - info
added the non-success response with the status
- info
added the non-success response with the status
- breaking
- info
added the non-success response with the status
- info