This commit is contained in:
peintnermax
2024-09-17 10:26:09 +02:00
parent 424bdf42f2
commit 23867f36ef
2 changed files with 20 additions and 10 deletions

View File

@@ -174,3 +174,19 @@ If the user chooses a method he is redirected to one of `/otp/time-based/set`, `
At the moment, U2F methods are hidden if a method is already added on the users resource. Reasoning is that the page should only be invoked for prompts. A self service page which shows up multiple u2f factors is implemented at a later stage. At the moment, U2F methods are hidden if a method is already added on the users resource. Reasoning is that the page should only be invoked for prompts. A self service page which shows up multiple u2f factors is implemented at a later stage.
> NOTE: The session and therefore the user factor defines which login settings are checked for available options. > NOTE: The session and therefore the user factor defines which login settings are checked for available options.
### /passkey/set
### /otp/[method]/set
### /u2f/set
### /register
### /idp/[method]/success /idp/[method]/failure
### /verify
### /accounts
### /signedin

View File

@@ -1,8 +1,4 @@
import { import { getBrandingSettings, settingsService } from "@/lib/zitadel";
getBrandingSettings,
getLegalAndSupportSettings,
settingsService,
} from "@/lib/zitadel";
import DynamicTheme from "@/ui/DynamicTheme"; import DynamicTheme from "@/ui/DynamicTheme";
import { SignInWithIDP } from "@/ui/SignInWithIDP"; import { SignInWithIDP } from "@/ui/SignInWithIDP";
import { makeReqCtx } from "@zitadel/client/v2"; import { makeReqCtx } from "@zitadel/client/v2";
@@ -23,8 +19,6 @@ export default async function Page({
const authRequestId = searchParams?.authRequestId; const authRequestId = searchParams?.authRequestId;
const organization = searchParams?.organization; const organization = searchParams?.organization;
const legal = await getLegalAndSupportSettings(organization);
const identityProviders = await getIdentityProviders(organization); const identityProviders = await getIdentityProviders(organization);
const host = process.env.VERCEL_URL const host = process.env.VERCEL_URL
@@ -36,12 +30,12 @@ export default async function Page({
return ( return (
<DynamicTheme branding={branding}> <DynamicTheme branding={branding}>
<div className="flex flex-col items-center space-y-4"> <div className="flex flex-col items-center space-y-4">
<h1>Register</h1> <h1>Sign in with SSO</h1>
<p className="ztdl-p"> <p className="ztdl-p">
Select one of the following providers to register Select one of the following providers to sign in
</p> </p>
{legal && identityProviders && process.env.ZITADEL_API_URL && ( {identityProviders && (
<SignInWithIDP <SignInWithIDP
host={host} host={host}
identityProviders={identityProviders} identityProviders={identityProviders}