POST /oauth/authorize
Route source: app/oauth/authorize/route.ts. Access: Portal session for consent; OAuth client parameters are validated. Status codes are read from the route implementation.
POST
/oauth/authorizeAccess
The session variable in examples is a placeholder. The browser supplies the real session cookie.
Request
JSON body follows validation in route source
| Path | Route details |
|---|---|
query · response_type | optional · {"type":"string"} |
query · code_challenge_method | optional · {"type":"string"} |
query · scope | optional · {"type":"string"} |
The accepted fields and validation are implemented in app/oauth/authorize/route.ts.
Synthetic curl example
curl -i -X POST 'https://portal.rfi-irfos.com/oauth/authorize' \
-H "Cookie: $PORTAL_SESSION_COOKIE" \
-H 'Origin: https://portal.rfi-irfos.com' \
-H 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'ticket=$SYNTHETIC_CONSENT_TICKET' \
--data-urlencode 'decision=approve' \
--data-urlencode 'scope=compliance:read'Response
The handler returns JSON. Response fields are defined in the linked route source.
307 400 403 503
The linked source file contains the authoritative field validation and response structure.
Error codes
400· Request or input validation failed403· Role or access scope is insufficient503· Service or database is unavailable
Code evidence
app/oauth/authorize/route