Skip to content

Commit

Permalink
Fix of a problem that disabled all identity providers when a custom IDP
Browse files Browse the repository at this point in the history
was given using the extraProviders configuration option, this fixes dej611#120
  • Loading branch information
fautore committed May 28, 2024
1 parent 90209ad commit d195223
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/shared/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d195223

Please sign in to comment.