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/authorizeZugang
Die Session-Variable in den Beispielen ist ein Platzhalter. Der Browser setzt das echte Sitzungscookie.
Anfrage
JSON-Body gemäß Validierung im Route-Code
| Pfad | 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.
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 fehlgeschlagen403· Rolle oder Zugriffsumfang reicht nicht aus503· Dienst oder Datenbank ist nicht verfügbar
Beleg im Code
app/oauth/authorize/route