From f43dd39ec73609805237e238eac61fcba999ba10 Mon Sep 17 00:00:00 2001 From: Favour Ohans Date: Fri, 21 Jun 2024 11:55:34 +0100 Subject: [PATCH] Make name case insensitive --- lib/build/thirdparty-shared.js | 22 +++++++++---------- .../recipe/thirdparty/providers/boxySaml.tsx | 22 +++++++++---------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/lib/build/thirdparty-shared.js b/lib/build/thirdparty-shared.js index cf0e5aff2..cac5c6d44 100644 --- a/lib/build/thirdparty-shared.js +++ b/lib/build/thirdparty-shared.js @@ -983,35 +983,35 @@ var BoxySAML = /** @class */ (function (_super) { genericComponentOverrideContext.__assign({ id: "boxy-saml", name: "BoxySAML" }, config) ) || this; _this.getLogo = function () { - switch (_this.name) { - case "Microsoft Entra ID": { + switch (_this.name.toLowerCase()) { + case "microsoft entra id": { return microsoftEntraIdLogo; } - case "Microsoft AD FS": { + case "microsoft ad fs": { return microsoftADFSLogo; } - case "Okta": { + case "okta": { return oktaLogo; } - case "Auth0": { + case "auth0": { return auth0Logo; } - case "Google": { + case "google": { return googleLogo; } - case "OneLogin": { + case "onelogin": { return oneLoginLogo; } - case "PingOne": { + case "pingone": { return pingOneLogo; } - case "JumpCloud": { + case "jumpcloud": { return jumpCloudLogo; } - case "Rippling": { + case "rippling": { return ripplingLogo; } - case "OpenID": { + case "openid": { return openIdLogo; } default: { diff --git a/lib/ts/recipe/thirdparty/providers/boxySaml.tsx b/lib/ts/recipe/thirdparty/providers/boxySaml.tsx index 8a12c7b44..a03ad2efe 100644 --- a/lib/ts/recipe/thirdparty/providers/boxySaml.tsx +++ b/lib/ts/recipe/thirdparty/providers/boxySaml.tsx @@ -55,35 +55,35 @@ export default class BoxySAML extends Provider { } getLogo = (): JSX.Element => { - switch (this.name) { - case "Microsoft Entra ID": { + switch (this.name.toLowerCase()) { + case "microsoft entra id": { return microsoftEntraIdLogo; } - case "Microsoft AD FS": { + case "microsoft ad fs": { return microsoftADFSLogo; } - case "Okta": { + case "okta": { return oktaLogo; } - case "Auth0": { + case "auth0": { return auth0Logo; } - case "Google": { + case "google": { return googleLogo; } - case "OneLogin": { + case "onelogin": { return oneLoginLogo; } - case "PingOne": { + case "pingone": { return pingOneLogo; } - case "JumpCloud": { + case "jumpcloud": { return jumpCloudLogo; } - case "Rippling": { + case "rippling": { return ripplingLogo; } - case "OpenID": { + case "openid": { return openIdLogo; } default: {