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.

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
storyden-session<token>

In: cookie

Query Parameters

user_code?string

OAuth device authorisation user code.

Response Body

application/json

application/json

application/json

curl -X GET "https://loading/api/oauth/device/consent"
{
  "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
}
{
  "error": "string",
  "error_description": "string"
}
Empty
{
  "error": "string",
  "message": "string",
  "suggested": "string",
  "metadata": {}
}