diff options
author | Christoph (Sheogorath) Kern | 2018-03-25 19:15:17 +0200 |
---|---|---|
committer | GitHub | 2018-03-25 19:15:17 +0200 |
commit | 57c47a65dde59d355fba702bc91c63eebcc2533c (patch) | |
tree | d24e3e7a226d4587497873a0a73a29110c21832c /lib/web/auth/saml | |
parent | ea1d35eddb12815f0d28b4531d6671ed8a1a4e23 (diff) | |
parent | 2411dffa2ce997370a636ed56cc73bcc4661ec7f (diff) |
Merge pull request #758 from SISheogorath/cleanup/config
Change config to camel case with backwards compatibility
Diffstat (limited to '')
-rw-r--r-- | lib/web/auth/saml/index.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/web/auth/saml/index.js b/lib/web/auth/saml/index.js index 386293ae..3ecbc6f3 100644 --- a/lib/web/auth/saml/index.js +++ b/lib/web/auth/saml/index.js @@ -13,9 +13,9 @@ const intersection = function (array1, array2) { return array1.filter((n) => arr let samlAuth = module.exports = Router() passport.use(new SamlStrategy({ - callbackUrl: config.serverurl + '/auth/saml/callback', + callbackUrl: config.serverURL + '/auth/saml/callback', entryPoint: config.saml.idpSsoUrl, - issuer: config.saml.issuer || config.serverurl, + issuer: config.saml.issuer || config.serverURL, cert: fs.readFileSync(config.saml.idpCert, 'utf-8'), identifierFormat: config.saml.identifierFormat }, function (user, done) { @@ -77,15 +77,15 @@ passport.use(new SamlStrategy({ samlAuth.get('/auth/saml', passport.authenticate('saml', { - successReturnToOrRedirect: config.serverurl + '/', - failureRedirect: config.serverurl + '/' + successReturnToOrRedirect: config.serverURL + '/', + failureRedirect: config.serverURL + '/' }) ) samlAuth.post('/auth/saml/callback', urlencodedParser, passport.authenticate('saml', { - successReturnToOrRedirect: config.serverurl + '/', - failureRedirect: config.serverurl + '/' + successReturnToOrRedirect: config.serverURL + '/', + failureRedirect: config.serverURL + '/' }) ) |