OAuthClientApi

API for managing OAuth 2.1 clients via the admin interface. Service role access token is required.

Functions

Link copied to clipboard
abstract suspend fun createClient(builder: CreateOAuthClientBuilder.() -> Unit): OAuthClient

Creates a new OAuth client.

Link copied to clipboard
abstract suspend fun deleteClient(clientId: String)

Deletes an OAuth client.

Link copied to clipboard
abstract suspend fun getClient(clientId: String): OAuthClient

Retrieves an OAuth client by its client ID.

Link copied to clipboard
abstract suspend fun listClients(page: Int? = null, perPage: Int? = null): List<OAuthClient>

Lists all OAuth clients.

Link copied to clipboard
abstract suspend fun regenerateClientSecret(clientId: String): OAuthClient

Regenerates the client secret for an OAuth client.

Link copied to clipboard
abstract suspend fun updateClient(clientId: String, builder: UpdateOAuthClientBuilder.() -> Unit): OAuthClient

Updates an existing OAuth client.