Zurück

POST /oauth/token

Route source: app/oauth/token/route.ts. Access: Public OAuth protocol endpoint; client and PKCE values are validated. Status codes are read from the route implementation.

POST/oauth/token

Zugang

Public protocol route

Anfrage

JSON-Body gemäß Validierung im Route-Code

The accepted fields and validation are implemented in app/oauth/token/route.ts.

Synthetisches curl-Beispiel
curl -i -X POST 'https://portal.rfi-irfos.com/oauth/token' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode 'grant_type=authorization_code' \
  --data-urlencode 'code=$AUTHORIZATION_CODE' \
  --data-urlencode 'client_id=$CLIENT_ID' \
  --data-urlencode 'redirect_uri=http://127.0.0.1:43123/callback' \
  --data-urlencode 'code_verifier=$PKCE_VERIFIER'

Antwort

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

200 503

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

Fehlercodes

  • 503 · Dienst oder Datenbank ist nicht verfügbar

Beleg im Code

app/oauth/token/route

Lokaler Index↑ ↓ · Enter · Esc