import { DynamicTheme } from "@/components/dynamic-theme"; import { getApiUrlOfHeaders } from "@/lib/service"; import { getBrandingSettings } from "@/lib/zitadel"; import { IdentityProviderType } from "@zitadel/proto/zitadel/settings/v2/login_settings_pb"; import { getLocale, getTranslations } from "next-intl/server"; import { headers } from "next/headers"; // This configuration shows the given name in the respective IDP button as fallback const PROVIDER_NAME_MAPPING: { [provider: string]: string; } = { [IdentityProviderType.GOOGLE]: "Google", [IdentityProviderType.GITHUB]: "GitHub", [IdentityProviderType.AZURE_AD]: "Microsoft", }; export default async function Page(props: { searchParams: Promise>; params: Promise<{ provider: string }>; }) { const searchParams = await props.searchParams; const locale = getLocale(); const t = await getTranslations({ locale, namespace: "idp" }); const { organization } = searchParams; const _headers = await headers(); const serviceUrl = getApiUrlOfHeaders(_headers); const branding = await getBrandingSettings({ serviceUrl, organization }); return (

{t("loginError.title")}

{t("loginError.description")}

); }