GET /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.
GET
/oauth/authorizeAccess
The session variable in examples is a placeholder. The browser supplies the real session cookie.
Request
| Path | Route details |
|---|---|
query · response_type | optional · {"type":"string"} |
query · code_challenge_method | optional · {"type":"string"} |
query · scope | optional · {"type":"string"} |
Request body in the handler contract: none.
Synthetic curl example
curl -i -X GET 'https://portal.rfi-irfos.com/oauth/authorize?response_type=code&client_id=$CLIENT_ID&redirect_uri=http%3A%2F%2F127.0.0.1%3A43123%2Fcallback&code_challenge=$PKCE_CHALLENGE&code_challenge_method=S256&scope=compliance%3Aread&state=$STATE&resource=https%3A%2F%2Fportal.rfi-irfos.com%2Fapi%2Fmcp' \
-H "Cookie: $PORTAL_SESSION_COOKIE"Response
The handler returns the consent page as HTML and redirects a missing session to login.
200 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