Storyden
Auth

O Auth Client Create

Create an OAuth client owned by the authenticated account. Member-created clients are third-party explicit-scope clients. The requested allowed scopes must be a subset of the authenticated account's current permissions.

POST
/auth/oauth/clients

Create an OAuth client owned by the authenticated account.

Member-created clients are third-party explicit-scope clients. The requested allowed scopes must be a subset of the authenticated account's current permissions.

Authorization

browser
cookiestoryden-session<token>

Request Body

application/json
  1. body
name*string
type*OAuthClientType
Value in"public""confidential"
redirect_uris?array<>
allowed_scopes*array<string>
allowed_grants*array<string>
pkce_required*boolean

Response Body

OAuth client and one-time client secret.

application/json
  1. response
client*
client_secret?string
Example Request
curl -X POST 'https://example.com/api/auth/oauth/clients' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "type": "public",  "allowed_scopes": [    "string"  ],  "allowed_grants": [    "string"  ],  "pkce_required": true}'
Example Response
{  "client": {    "id": "string",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "account_id": "string",    "registration_approved_by_account_id": "string",    "dcr_iat_id": "string",    "client_id": "string",    "name": "string",    "type": "public",    "scope_policy": "explicit",    "redirect_uris": [      "http://example.com"    ],    "allowed_scopes": [      "string"    ],    "allowed_grants": [      "string"    ]  },  "client_secret": "string"}