Back

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/authorize

Access

The session variable in examples is a placeholder. The browser supplies the real session cookie.

Request

JSON body follows validation in route source

PathRoute details
query · response_typeoptional · {"type":"string"}
query · code_challenge_methodoptional · {"type":"string"}
query · scopeoptional · {"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 failed
  • 403 · Role or access scope is insufficient
  • 503 · Service or database is unavailable

Code evidence

app/oauth/authorize/route

Local index↑ ↓ · Enter · Esc