Zurück

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

Zugang

Die Session-Variable in den Beispielen ist ein Platzhalter. Der Browser setzt das echte Sitzungscookie.

Anfrage

JSON-Body gemäß Validierung im Route-Code

PfadRoute-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.

Synthetisches curl-Beispiel
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'

Antwort

Der Handler liefert JSON. Die Antwortfelder sind im verlinkten Routencode definiert.

307 400 403 503

Die referenzierte Quelldatei enthält die maßgebliche Feldvalidierung und Antwortstruktur.

Fehlercodes

  • 400 · Anfrage oder Eingabevalidierung fehlgeschlagen
  • 403 · Rolle oder Zugriffsumfang reicht nicht aus
  • 503 · Dienst oder Datenbank ist nicht verfügbar

Beleg im Code

app/oauth/authorize/route

Lokaler Index↑ ↓ · Enter · Esc