OAuthApi

interface OAuthApi(source)

Interface for the OAuth 2.1 authorization server methods. Only relevant when the OAuth 2.1 server is enabled in Supabase Auth. Used to implement the authorization code flow on the consent page.

Functions

Link copied to clipboard
abstract suspend fun approveAuthorization(authorizationId: String): OAuthRedirect

Approves an OAuth authorization request. Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.

Link copied to clipboard
abstract suspend fun denyAuthorization(authorizationId: String): OAuthRedirect

Denies an OAuth authorization request. Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.

Link copied to clipboard
abstract suspend fun getAuthorizationDetails(authorizationId: String): OAuthAuthorizationDetailsResponse

Retrieves details about an OAuth authorization request. Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.

Link copied to clipboard
abstract suspend fun listAuthorizationGrants(): List<OAuthGrant>

Lists all OAuth grants that the authenticated user has authorized. Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.

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

Revokes a user's OAuth grant for a specific client. Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.