Storyden
Auth

O Auth Device Consent

Read a pending OAuth device authorisation request for a signed-in user before they approve or deny consent in the frontend. This is a Storyden frontend/API integration endpoint, not an OAuth protocol endpoint. The API never renders the consent UI directly. A frontend reads this JSON, displays the client and scopes, then submits the user's decision. Reading consent claims the user code for the signed-in account. This prevents another account from approving the same code after it has been displayed.

GET
/oauth/device/consent

Read a pending OAuth device authorisation request for a signed-in user before they approve or deny consent in the frontend.

This is a Storyden frontend/API integration endpoint, not an OAuth protocol endpoint. The API never renders the consent UI directly. A frontend reads this JSON, displays the client and scopes, then submits the user's decision.

Reading consent claims the user code for the signed-in account. This prevents another account from approving the same code after it has been displayed.

Authorization

browser
cookiestoryden-session<token>

Query Parameters

user_code?string

OAuth device authorisation user code.

Response Body

Device consent details.

application/json
  1. response
user_code*string
client_id*string
client_name*string
expires_at*string
Formatdate-time
requested_scopes*array<string>
granted_scopes*array<string>
inherits_user_permissions*boolean
Example Request
curl -X GET 'https://example.com/api/oauth/device/consent'
Example Response
{  "user_code": "string",  "client_id": "string",  "client_name": "string",  "expires_at": "2019-08-24T14:15:22Z",  "requested_scopes": [    "string"  ],  "granted_scopes": [    "string"  ],  "inherits_user_permissions": true}