fix: handle multi social auth strategies

This commit is contained in:
Nicolas Giard authored and GitHub committed 2022-03-25 21:17:04 -04:00
1 parent 1f489a3d8e
commit a652e43ab1
19 files changed
+19 -19

No files matched your search

@@ -37,7 +37,7 @@ module.exports = {
if (!_.isEmpty(conf.decryptionPvk)) {
samlConfig.decryptionPvk = conf.decryptionPvk
}
passport.use('saml',
passport.use(conf.key,
new SAMLStrategy(samlConfig, async (req, profile, cb) => {
try {
const userId = _.get(profile, [conf.mappingUID], null) || _.get(profile, 'nameID', null)