OAuthAuthorizationDetails

@Serializable
data class OAuthAuthorizationDetails(val authorizationId: String, val redirectUri: String, val client: OAuthAuthorizationClient, val user: OAuthAuthorizationUser, val scope: String) : OAuthAuthorizationDetailsResponse(source)

OAuth authorization details when user needs to provide consent. Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.

This response includes all information needed to display a consent page: client details, user info, requested scopes, and where the user will be redirected.

Note: redirectUri is the base URI (e.g., "https://app.com/callback") without query parameters. After consent, you'll receive a complete redirect url with the authorization code and state parameters appended.

Parameters

authorizationId

The authorization ID used to approve or deny the request

redirectUri

The OAuth client's registered redirect URI (base URI without query parameters)

client

OAuth client requesting authorization

user

User object associated with the authorization

scope

Space-separated list of requested scopes (e.g., "openid profile email")

Constructors

Link copied to clipboard
constructor(authorizationId: String, redirectUri: String, client: OAuthAuthorizationClient, user: OAuthAuthorizationUser, scope: String)

Properties

Link copied to clipboard
@SerialName(value = "authorization_id")
val authorizationId: String
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "redirect_uri")
val redirectUri: String
Link copied to clipboard
Link copied to clipboard