feat: authentication module refactor + added CAS module

This commit is contained in:
NGPixel
2018-07-08 11:16:45 -04:00
parent 9e2f1caaf7
commit fd8bf4dbff
32 changed files with 194 additions and 127 deletions

View File

@@ -45,7 +45,7 @@ module.exports = {
const stg = enabledStrategies[idx]
if (!stg.isEnabled) { continue }
const strategy = require(`../modules/authentication/${stg.key}`)
const strategy = require(`../modules/authentication/${stg.key}/authentication.js`)
stg.config.callbackURL = `${WIKI.config.host}/login/${stg.key}/callback` // TODO: config.host
strategy.init(passport, stg.config)