Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #426 from rudfoss/patch-1
Browse files Browse the repository at this point in the history
Fixed policyChecker bug
  • Loading branch information
DarylThayil authored Dec 16, 2019
2 parents dc51592 + 7f5be72 commit 96c7a19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/oidcstrategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ Strategy.prototype.setOptions = function setOptions(params, oauthConfig, options
u = url.parse(endpoint);
} catch (ex) {
}
return u.pathname && _.includes(u.pathname, policy.toLowerCase());
return u.pathname && _.includes(u.path, policy.toLowerCase());
};
// B2C has no userinfo_endpoint, so no need to check it
if (!policyChecker(oauthConfig.authorization_endpoint, params.policy)) {
Expand Down

0 comments on commit 96c7a19

Please sign in to comment.