Storyden
Admin

Admin O Auth Client Create

Create an OAuth client. Confidential clients receive a generated secret once at creation time and must authenticate to `/oauth/token` when using confidential grants. Public clients do not receive or use a client secret.

POST
/admin/oauth/clients

Create an OAuth client.

Confidential clients receive a generated secret once at creation time and must authenticate to /oauth/token when using confidential grants. Public clients do not receive or use a client secret.

Authorization

cookiestoryden-session<token>

Request Body

application/json
  1. body
account_id*Identifier

A unique identifier for this resource.

Formatxid
client_id*string
client_secret_hash?string
name*string
type*OAuthClientType
Value in"public""confidential"
scope_policy?OAuthClientScopePolicy
Value in"explicit""inherit"
redirect_uris*array<>
allowed_scopes*array<string>
allowed_grants*array<string>

Response Body

OAuth client.

application/json
  1. response
id*Identifier

Initial Access Token that authorized creation, when applicable.

Formatxid
createdAt*CreatedAt

The time the resource was created.

Formatdate-time
updatedAt*UpdatedAt

The time the resource was updated.

Formatdate-time
account_id?Identifier

Initial Access Token that authorized creation, when applicable.

Formatxid
registration_approved_by_account_id?Identifier

Initial Access Token that authorized creation, when applicable.

Formatxid
dcr_iat_id?Identifier

Initial Access Token that authorized creation, when applicable.

Formatxid
client_id*string
name*string
type*OAuthClientType
Value in"public""confidential"
scope_policy*OAuthClientScopePolicy
Value in"explicit""inherit"
redirect_uris*array<>
allowed_scopes*array<string>
allowed_grants*array<string>
Example Request
curl -X POST 'https://example.com/api/admin/oauth/clients' \  -H 'Content-Type: application/json' \  -d '{  "account_id": "string",  "client_id": "string",  "name": "string",  "type": "public",  "redirect_uris": [    "http://example.com"  ],  "allowed_scopes": [    "string"  ],  "allowed_grants": [    "string"  ]}'
Example Response
{  "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"  ]}