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