Skip to content

Commit

Permalink
redirect to logout link
Browse files Browse the repository at this point in the history
  • Loading branch information
Tjen Wellens committed Jul 26, 2016
1 parent 1828ecf commit e6cd477
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions server/config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ var authentication = {
// URL that goes from the Service Provider -> Identity Provider
entryPoint: process.env.SAML_ENTRY_POINT || 'https://idp-qas.viaa.be/saml2/idp/SSOService.php',

// Url to logout from the Identity Provider
logoutUrl: 'https://idp-qas.viaa.be/module.php/core/authenticate.php?as=viaa-ldap&logout',

// Usually specified as `/shibboleth` from site root
issuer: process.env.ISSUER || 'passport-saml',

Expand Down
2 changes: 1 addition & 1 deletion server/routes/authentication.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports = function (app, config, passport) {

app.get('/logout', function (req, res) {
req.logout();
res.redirect('/');
res.redirect(config.passport.saml.logoutUrl);
});

app.get('/Metadata',
Expand Down

0 comments on commit e6cd477

Please sign in to comment.