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.
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.
/admin/oauth/clientsIn: cookie
Request Body
application/json
A unique identifier for this resource.
xid"public" | "confidential""explicit" | "inherit"Response Body
application/json
application/json
curl -X POST "https://loading/api/admin/oauth/clients" \ -H "Content-Type: application/json" \ -d '{ "account_id": "cc5lnd2s1s4652adtu50", "client_id": "string", "name": "string", "type": "public", "redirect_uris": [ "http://example.com" ], "allowed_scopes": [ "string" ], "allowed_grants": [ "string" ] }'{
"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"
]
}{
"error": "string",
"message": "string",
"suggested": "string",
"metadata": {}
}Admin Account Ban Remove DELETE
Given the account is suspended, remove the suspended state.
Admin O Auth Client Delete DELETE
Delete an OAuth client. Deleting a client also removes its pending OAuth records and refresh tokens, preventing existing grants from being renewed. Existing JWT access tokens are self-contained and remain valid until expiry.