mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-11 22:42:18 +00:00
idp button
This commit is contained in:
@@ -14,6 +14,7 @@ import { SignInWithAzureAD } from "./idps/SignInWithAzureAD";
|
|||||||
import { SignInWithGeneric } from "./idps/SignInWithGeneric";
|
import { SignInWithGeneric } from "./idps/SignInWithGeneric";
|
||||||
import { SignInWithGithub } from "./idps/SignInWithGithub";
|
import { SignInWithGithub } from "./idps/SignInWithGithub";
|
||||||
import { SignInWithGitlab } from "./idps/SignInWithGitlab";
|
import { SignInWithGitlab } from "./idps/SignInWithGitlab";
|
||||||
|
import { SignInWithGoogle } from "./idps/SignInWithGoogle";
|
||||||
|
|
||||||
export interface SignInWithIDPProps {
|
export interface SignInWithIDPProps {
|
||||||
children?: ReactNode;
|
children?: ReactNode;
|
||||||
@@ -139,14 +140,14 @@ export function SignInWithIDP({
|
|||||||
);
|
);
|
||||||
case IdentityProviderType.GOOGLE:
|
case IdentityProviderType.GOOGLE:
|
||||||
return (
|
return (
|
||||||
<SignInWithApple
|
<SignInWithGoogle
|
||||||
key={`idp-${i}`}
|
key={`idp-${i}`}
|
||||||
e2e="google"
|
e2e="google"
|
||||||
name={idp.name}
|
name={idp.name}
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
navigateToAuthUrl(idp.id, IdentityProviderType.GOOGLE)
|
navigateToAuthUrl(idp.id, IdentityProviderType.GOOGLE)
|
||||||
}
|
}
|
||||||
></SignInWithApple>
|
></SignInWithGoogle>
|
||||||
);
|
);
|
||||||
case IdentityProviderType.GITLAB:
|
case IdentityProviderType.GITLAB:
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user