Storyden
Auth

O Auth Device Consent Submit

Approve or deny a pending OAuth device authorisation request for the currently signed-in account. On approval Storyden recomputes the granted scope from the current account permissions and client policy. For first-party inherited clients this means the final token scope may include Storyden permission scopes that were not present in the original device authorisation request.

POST
/oauth/device/consent

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

On approval Storyden recomputes the granted scope from the current account permissions and client policy. For first-party inherited clients this means the final token scope may include Storyden permission scopes that were not present in the original device authorisation request.

Authorization

browser
cookiestoryden-session<token>

Request Body

application/json
  1. body
user_code*string
decision*OAuthDeviceDecision
Value in"approve""deny"

Response Body

Device consent decision result.

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