|
|
|
@ -77,7 +77,7 @@ module.exports = {
|
|
|
|
|
for (let idx in enabledStrategies) {
|
|
|
|
|
const stg = enabledStrategies[idx]
|
|
|
|
|
if (!stg.isEnabled) { continue }
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
const strategy = require(`../modules/authentication/${stg.key}/authentication.js`)
|
|
|
|
|
|
|
|
|
|
stg.config.callbackURL = `${WIKI.config.host}/login/${stg.key}/callback`
|
|
|
|
@ -89,9 +89,13 @@ module.exports = {
|
|
|
|
|
...stg
|
|
|
|
|
}
|
|
|
|
|
WIKI.logger.info(`Authentication Strategy ${stg.key}: [ OK ]`)
|
|
|
|
|
} catch (err) {
|
|
|
|
|
WIKI.logger.error(`Authentication Strategy ${stg.key}: [ FAILED ]`)
|
|
|
|
|
WIKI.logger.error(err)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} catch (err) {
|
|
|
|
|
WIKI.logger.error(`Authentication Strategy: [ FAILED ]`)
|
|
|
|
|
WIKI.logger.error(`Failed to initialize Authentication Strategies: [ ERROR ]`)
|
|
|
|
|
WIKI.logger.error(err)
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|