Back

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

Access

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

Request

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

Code evidence

app/oauth/authorize/route

Local index↑ ↓ · Enter · Esc