Storyden
Auth

O Auth Client Update

Update an OAuth client created by the authenticated account. Allowed scopes must remain within the authenticated account's current permissions. If the account has `ADMINISTRATOR`, it may configure any Storyden permission scope because `ADMINISTRATOR` implicitly grants all permissions. Changing allowed scopes affects future grants and refreshes but does not immediately invalidate already-issued JWT access tokens.

Update an OAuth client created by the authenticated account.

Allowed scopes must remain within the authenticated account's current permissions. If the account has ADMINISTRATOR, it may configure any Storyden permission scope because ADMINISTRATOR implicitly grants all permissions.

Changing allowed scopes affects future grants and refreshes but does not immediately invalidate already-issued JWT access tokens.

PATCH/auth/oauth/clients/{oauth_client_id}
storyden-session<token>

In: cookie

Path Parameters

oauth_client_id*string

OAuth client ID.

Formatxid

Request Body

application/json

name?string
redirect_uris?array<>
allowed_scopes?array<>

Response Body

application/json

application/json

curl -X PATCH "https://loading/api/auth/oauth/clients/cc5lnd2s1s4652adtu50" \  -H "Content-Type: application/json" \  -d '{}'
{
  "id": "cc5lnd2s1s4652adtu50",
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z",
  "account_id": "cc5lnd2s1s4652adtu50",
  "client_id": "string",
  "name": "string",
  "type": "public",
  "scope_policy": "explicit",
  "redirect_uris": [
    "http://example.com"
  ],
  "allowed_scopes": [
    "string"
  ],
  "allowed_grants": [
    "string"
  ]
}
Empty
Empty
Empty
{
  "error": "string",
  "message": "string",
  "suggested": "string",
  "metadata": {}
}