fixed the SAML callback URL to unconfigurable.

This commit is contained in:
Norihito Nakae 2017-11-29 15:45:32 +09:00
parent 4a4ae9d332
commit a22be81feb
3 changed files with 1 additions and 3 deletions

View file

@ -13,7 +13,7 @@ const intersection = function (array1, array2) { return array1.filter((n) => arr
let samlAuth = module.exports = Router()
passport.use(new SamlStrategy({
callbackUrl: config.saml.callbackUrl || config.serverurl + '/auth/saml/callback',
callbackUrl: config.serverurl + '/auth/saml/callback',
entryPoint: config.saml.idpSsoUrl,
issuer: config.saml.issuer || config.serverurl,
cert: fs.readFileSync(config.saml.idpCert, 'utf-8'),