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.

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.

POST/oauth/authorize/consent
storyden-session<token>

In: cookie

Request Body

application/json

request_id*string
decision*string
Value in"approve" | "deny"

Response Body

application/json

application/json

application/json

curl -X POST "https://loading/api/oauth/authorize/consent" \  -H "Content-Type: application/json" \  -d '{    "request_id": "string",    "decision": "approve"  }'
{
  "status": "approved",
  "location": "http://example.com"
}
{
  "error": "string",
  "error_description": "string"
}
Empty
{
  "error": "string",
  "message": "string",
  "suggested": "string",
  "metadata": {}
}