From 3cd7ac19282e76a9a2c10ddf718366e72933ff55 Mon Sep 17 00:00:00 2001 From: Joshen Lim Date: Thu, 18 Jun 2026 17:27:17 +0800 Subject: [PATCH] Attempt --- .../interfaces/Account/Preferences/AccountIdentities.tsx | 5 +++-- apps/studio/lib/external-identity-providers.ts | 8 ++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/apps/studio/components/interfaces/Account/Preferences/AccountIdentities.tsx b/apps/studio/components/interfaces/Account/Preferences/AccountIdentities.tsx index 2307ecc7206..c6b2f41ebbc 100644 --- a/apps/studio/components/interfaces/Account/Preferences/AccountIdentities.tsx +++ b/apps/studio/components/interfaces/Account/Preferences/AccountIdentities.tsx @@ -52,6 +52,7 @@ export const AccountIdentities = () => { const router = useRouter() const { data, isPending: isLoading, isSuccess } = useProfileIdentitiesQuery() + console.log(data) const enabledProviders = useEnabledIdentityProviders() const connectableExternalProviders = useMemo( @@ -142,8 +143,8 @@ export const AccountIdentities = () => { {isSuccess && (
{identities.map((identity) => { - const { identity_id, provider } = identity - const username = identity.identity_data?.user_name + const { identity_id, identity_data, provider } = identity + const username = identity_data?.user_name const providerDisplay = getProviderDisplay(provider) const providerName = providerDisplay.displayName const configuredProvider = getConfiguredExternalProvider(provider) diff --git a/apps/studio/lib/external-identity-providers.ts b/apps/studio/lib/external-identity-providers.ts index 09bf0cef17d..640a1951bb8 100644 --- a/apps/studio/lib/external-identity-providers.ts +++ b/apps/studio/lib/external-identity-providers.ts @@ -70,6 +70,14 @@ export function getProviderDisplay(provider: string): IdentityProviderDisplay { } } + if (provider.startsWith('custom:')) { + return { + id: provider, + displayName: provider.replace('custom:', ''), + iconPath: `${BASE_PATH}/img/icons/saml-icon.svg`, + } + } + if (provider.startsWith('sso')) { return { id: provider,