Storyden
Auth

O Auth Authorise Consent Submit

Approve or deny a pending OAuth authorisation code request for the currently signed-in account. On approval this creates a short-lived authorisation code and returns the client redirect URI containing `code` and optional `state`. On denial the returned redirect URI contains `error=access_denied`. Storyden recomputes the granted scope at approval time from current account permissions and client policy. Accepts either a browser session or a personal access key.

POST
/oauth/authorize/consent

Approve or deny a pending OAuth authorisation code request for the currently signed-in account.

On approval this creates a short-lived authorisation code and returns the client redirect URI containing code and optional state. On denial the returned redirect URI contains error=access_denied.

Storyden recomputes the granted scope at approval time from current account permissions and client policy. Accepts either a browser session or a personal access key.

Authorization

cookiestoryden-session<token>

Request Body

application/json
  1. body
request_id*string
decision*OAuthAuthoriseDecision
Value in"approve""deny"

Response Body

Authorization code consent decision result.

application/json
  1. response
status*string
Value in"approved""denied"
location*string
Formaturi
Example Request
curl -X POST 'https://example.com/api/oauth/authorize/consent' \  -H 'Content-Type: application/json' \  -d '{  "request_id": "string",  "decision": "approve"}'
Example Response
{  "status": "approved",  "location": "http://example.com"}