From d195223ccef5da1f6239579d29c5fb716c089bfd Mon Sep 17 00:00:00 2001 From: fautore Date: Tue, 28 May 2024 14:19:09 +0200 Subject: [PATCH] Fix of a problem that disabled all identity providers when a custom IDP was given using the extraProviders configuration option, this fixes #120 --- src/shared/utils.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shared/utils.ts b/src/shared/utils.ts index 5361f4e..c938f4b 100644 --- a/src/shared/utils.ts +++ b/src/shared/utils.ts @@ -73,7 +73,9 @@ export function isProviderActive( ({ entityID }) => entityID === idp.entityID ); return ( - supported.indexOf(idp.entityID) > -1 && + (isExtraProviders + ? isExtraProviders + : supported.indexOf(idp.entityID) > -1) && idp.protocols.indexOf(protocol) > -1 && (extraProviders.length === 0 || isExtraProviders) && idp.active