diff --git a/apps/login/src/components/sign-in-with-idp.tsx b/apps/login/src/components/sign-in-with-idp.tsx index 7632a29cc1..9c1d339ffa 100644 --- a/apps/login/src/components/sign-in-with-idp.tsx +++ b/apps/login/src/components/sign-in-with-idp.tsx @@ -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]; diff --git a/apps/login/src/lib/idp.ts b/apps/login/src/lib/idp.ts index 1d4b82951a..a62889efa3 100644 --- a/apps/login/src/lib/idp.ts +++ b/apps/login/src/lib/idp.ts @@ -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"); }