add jwt IDP type

This commit is contained in:
Max Peintner
2025-06-05 13:15:17 +02:00
parent 94273acb6c
commit 4b38a7a64b
2 changed files with 6 additions and 0 deletions

View File

@@ -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];

View File

@@ -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");
}