@@ -893,6 +893,12 @@ class JWKSet(TypedDict):
893893Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
894894"""
895895
896+ OAuthClientTokenEndpointAuthMethod = Literal ["none" , "client_secret_basic" , "client_secret_post" ]
897+ """
898+ OAuth client token endpoint authentication method.
899+ Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.
900+ """
901+
896902
897903class OAuthClient (BaseModel ):
898904 """
@@ -901,27 +907,29 @@ class OAuthClient(BaseModel):
901907 """
902908
903909 client_id : str
904- """Unique identifier for the OAuth client"""
910+ """Unique client identifier """
905911 client_name : str
906- """Human-readable name of the OAuth client"""
912+ """Human-readable name of the client application """
907913 client_secret : Optional [str ] = None
908- """Client secret (only returned on registration and regeneration)"""
914+ """Client secret for confidential clients (only returned on registration/ regeneration)"""
909915 client_type : OAuthClientType
910- """Type of OAuth client"""
911- token_endpoint_auth_method : str
912- """Token endpoint authentication method """
916+ """Type of the client"""
917+ token_endpoint_auth_method : OAuthClientTokenEndpointAuthMethod
918+ """Authentication method for the token endpoint """
913919 registration_type : OAuthClientRegistrationType
914920 """Registration type of the client"""
915921 client_uri : Optional [str ] = None
916- """URI of the OAuth client"""
922+ """URL of the client application's homepage"""
923+ logo_uri : Optional [str ] = None
924+ """URL of the client application's logo"""
917925 redirect_uris : List [str ]
918- """Array of allowed redirect URIs"""
926+ """Array of redirect URIs used by the client """
919927 grant_types : List [OAuthClientGrantType ]
920- """Array of allowed grant types"""
928+ """OAuth grant types the client is authorized to use """
921929 response_types : List [OAuthClientResponseType ]
922- """Array of allowed response types"""
930+ """OAuth response types the client can use """
923931 scope : Optional [str ] = None
924- """Scope of the OAuth client """
932+ """Space-separated list of scope values """
925933 created_at : str
926934 """Timestamp when the client was created"""
927935 updated_at : str
@@ -937,15 +945,17 @@ class CreateOAuthClientParams(BaseModel):
937945 client_name : str
938946 """Human-readable name of the OAuth client"""
939947 client_uri : Optional [str ] = None
940- """URI of the OAuth client"""
948+ """URL of the client application's homepage"""
949+ logo_uri : Optional [str ] = None
950+ """URL of the client application's logo"""
941951 redirect_uris : List [str ]
942- """Array of allowed redirect URIs"""
952+ """Array of redirect URIs used by the client """
943953 grant_types : Optional [List [OAuthClientGrantType ]] = None
944- """Array of allowed grant types (optional, defaults to authorization_code and refresh_token)"""
954+ """OAuth grant types the client is authorized to use (optional, defaults to authorization_code and refresh_token)"""
945955 response_types : Optional [List [OAuthClientResponseType ]] = None
946- """Array of allowed response types (optional, defaults to code)"""
956+ """OAuth response types the client can use (optional, defaults to code)"""
947957 scope : Optional [str ] = None
948- """Scope of the OAuth client """
958+ """Space-separated list of scope values """
949959
950960
951961class OAuthClientResponse (BaseModel ):
0 commit comments