summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/web/auth/saml/index.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/web/auth/saml/index.js b/lib/web/auth/saml/index.js
index 1c80c934..dd274814 100644
--- a/lib/web/auth/saml/index.js
+++ b/lib/web/auth/saml/index.js
@@ -77,14 +77,13 @@ passport.use(new SamlStrategy({
})
}))
-samlAuth.get('/auth/saml',function(req,res,next) {
+samlAuth.get('/auth/saml', function (req, res, next) {
setReturnToFromReferer(req)
passport.authenticate('saml', {
successReturnToOrRedirect: config.serverURL + '/',
failureRedirect: config.serverURL + '/'
- })(req,res,next)
- }
-)
+ })(req, res, next)
+})
samlAuth.post('/auth/saml/callback', urlencodedParser,
passport.authenticate('saml', {