OAuth Authorize¶
Starts OAuth authorization-code flow from OpenASA Provider side.
Method and path¶
- Method:
GET - Path:
/oauth/authorize - Auth: browser session required
Query parameters¶
response_type: must becodeclient_idredirect_uriscopestatenoncecode_challengecode_challenge_method: must beS256
Response¶
- Success:
302redirect toredirect_uri?code=...&state=... - Errors:
401: no active browser session400: invalid request parameters
Example request¶
GET /oauth/authorize?response_type=code&client_id=shop_web&redirect_uri=https%3A%2F%2Fshop.example.com%2Foauth%2Fcallback&scope=openid%20profile%20email&state=s_8chars_min&nonce=n_8chars_min&code_challenge=abc123&code_challenge_method=S256