mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 08:27:32 +00:00
add jwt IDP type
This commit is contained in:
@@ -53,6 +53,7 @@ export function SignInWithIdp({
|
||||
[IdentityProviderType.GITLAB]: SignInWithGitlab,
|
||||
[IdentityProviderType.GITLAB_SELF_HOSTED]: SignInWithGitlab,
|
||||
[IdentityProviderType.SAML]: SignInWithGeneric,
|
||||
[IdentityProviderType.JWT]: SignInWithGeneric,
|
||||
};
|
||||
|
||||
const Component = components[type];
|
||||
|
@@ -24,6 +24,8 @@ export function idpTypeToSlug(idpType: IdentityProviderType) {
|
||||
return "oauth";
|
||||
case IdentityProviderType.OIDC:
|
||||
return "oidc";
|
||||
case IdentityProviderType.JWT:
|
||||
return "jwt";
|
||||
default:
|
||||
throw new Error("Unknown identity provider type");
|
||||
}
|
||||
@@ -64,6 +66,9 @@ export function idpTypeToIdentityProviderType(
|
||||
case IDPType.IDP_TYPE_OIDC:
|
||||
return IdentityProviderType.OIDC;
|
||||
|
||||
case IDPType.IDP_TYPE_JWT:
|
||||
return IdentityProviderType.JWT;
|
||||
|
||||
default:
|
||||
throw new Error("Unknown identity provider type");
|
||||
}
|
||||
|
Reference in New Issue
Block a user