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/authorizeZugang
Die Session-Variable in den Beispielen ist ein Platzhalter. Der Browser setzt das echte Sitzungscookie.
Anfrage
| Pfad | Route-Details |
|---|---|
query · response_type | optional · {"type":"string"} |
query · code_challenge_method | optional · {"type":"string"} |
query · scope | optional · {"type":"string"} |
Anfrage-Body laut Handler: keiner.
Synthetisches curl-Beispiel
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"Antwort
Der Handler liefert die Zustimmungsseite als HTML und leitet eine fehlende Sitzung zum Login weiter.
200 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