OAuth
Start an authorization
Open it in the browser of the person. An unknown client or unregistered redirect_uri gives a 400; otherwise it redirects to Sofia consent screen.
Query parameters
response_typestringrequiredMust be
code.client_idstringrequiredThe
client_idof the client.redirect_uristringrequiredA registered redirect address, matched exactly.
scopestringrequiredThe requested scopes, separated by a space (
offline_accessto get a refresh token).statestringReturned unchanged on the way back, to protect the client against CSRF.
code_challengestringrequiredPKCE challenge,
base64url(SHA-256(code_verifier)), required for every client.code_challenge_methodstringrequiredMust be
S256.
Response
302
Redirects to the consent screen, or sends the error back to redirect_uri.
400
invalid_client: unknown client or unregistered redirect_uri.