fix: handle multi social auth strategies

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

View File

@@ -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)