feat: authentication module refactor + added CAS module
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user