OAuthClient

@Serializable
data class OAuthClient(val clientId: String, val clientSecret: String? = null, val clientName: String, val clientType: OAuthClientType? = null, val clientUri: String? = null, val logoUri: String? = null, val redirectUris: List<String> = emptyList(), val grantTypes: List<OAuthClientGrantType> = emptyList(), val responseTypes: List<OAuthClientResponseType> = emptyList(), val scope: String? = null, val tokenEndpointAuthMethod: OAuthClientTokenEndpointAuthMethod? = null, val registrationType: OAuthClientRegistrationType? = null, val createdAt: String? = null, val updatedAt: String? = null)(source)

Represents an OAuth 2.1 client registered with the Supabase Auth server.

Parameters

clientId

The unique identifier for the OAuth client

clientSecret

The client secret (only returned on create/regenerate)

clientName

The display name of the client

clientType

The client type (public or confidential)

clientUri

The URI of the client's homepage

logoUri

The URI of the client's logo

redirectUris

The allowed redirect URIs

grantTypes

The allowed grant types

responseTypes

The allowed response types

scope

The allowed scope

tokenEndpointAuthMethod

The token endpoint authentication method

registrationType

The registration type (dynamic or manual)

createdAt

The creation timestamp

updatedAt

The last update timestamp

Constructors

Link copied to clipboard
constructor(clientId: String, clientSecret: String? = null, clientName: String, clientType: OAuthClientType? = null, clientUri: String? = null, logoUri: String? = null, redirectUris: List<String> = emptyList(), grantTypes: List<OAuthClientGrantType> = emptyList(), responseTypes: List<OAuthClientResponseType> = emptyList(), scope: String? = null, tokenEndpointAuthMethod: OAuthClientTokenEndpointAuthMethod? = null, registrationType: OAuthClientRegistrationType? = null, createdAt: String? = null, updatedAt: String? = null)

Properties

Link copied to clipboard
@SerialName(value = "client_id")
val clientId: String
Link copied to clipboard
@SerialName(value = "client_name")
val clientName: String
Link copied to clipboard
@SerialName(value = "client_secret")
val clientSecret: String?
Link copied to clipboard
@SerialName(value = "client_type")
val clientType: OAuthClientType?
Link copied to clipboard
@SerialName(value = "client_uri")
val clientUri: String?
Link copied to clipboard
@SerialName(value = "created_at")
val createdAt: String?
Link copied to clipboard
@SerialName(value = "grant_types")
val grantTypes: List<OAuthClientGrantType>
Link copied to clipboard
@SerialName(value = "logo_uri")
val logoUri: String?
Link copied to clipboard
@SerialName(value = "redirect_uris")
val redirectUris: List<String>
Link copied to clipboard
@SerialName(value = "registration_type")
val registrationType: OAuthClientRegistrationType?
Link copied to clipboard
@SerialName(value = "response_types")
val responseTypes: List<OAuthClientResponseType>
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "token_endpoint_auth_method")
val tokenEndpointAuthMethod: OAuthClientTokenEndpointAuthMethod?
Link copied to clipboard
@SerialName(value = "updated_at")
val updatedAt: String?