Fix SAML logout

pull/5152/head
Rodrigo Nascimento 9 years ago
parent e62fe6ea40
commit 714b4e7d39
No known key found for this signature in database
GPG Key ID: 2C85B3AFE75D23F9
  1. 4
      packages/meteor-accounts-saml/saml_client.js

@ -118,6 +118,10 @@ Meteor.loginWithSaml = function(options, callback) {
Meteor.logoutWithSaml = function(options/*, callback*/) {
//Accounts.saml.idpInitiatedSLO(options, callback);
Meteor.call('samlLogout', options.provider, function(err, result) {
if (err || !result) {
MeteorLogout.apply(Meteor);
return;
}
// A nasty bounce: 'result' has the SAML LogoutRequest but we need a proper 302 to redirected from the server.
//window.location.replace(Meteor.absoluteUrl('_saml/sloRedirect/' + options.provider + '/?redirect='+result));
window.location.replace(Meteor.absoluteUrl('_saml/sloRedirect/' + options.provider + '/?redirect=' + encodeURIComponent(result)));

Loading…
Cancel
Save