Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SAML single logout not working with SimpleSAMLphp #13562

Closed
adanielvv opened this issue Feb 25, 2019 · 2 comments
Closed

SAML single logout not working with SimpleSAMLphp #13562

adanielvv opened this issue Feb 25, 2019 · 2 comments

Comments

@adanielvv
Copy link

adanielvv commented Feb 25, 2019

Description:

SAML implementation works with login, not logout

Steps to reproduce:

  1. Setup SAML auth according to https://rocket.chat/docs/administrator-guides/authentication/saml/
  2. Login using SAML
  3. Logout using SAML

Expected behavior:

Logout goes through.

Actual behavior:

Sorry, an annoying error occured
TypeError: First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.
Close Window
on page:

https://chat.schreeuwomleven.nl/_saml/logout/ldap/?SAMLRequest=<code>&RelayState=_<code>

Noticed in the RocketChat code there is code to check for SAMLResponse, not SAMLRequest.

Server Setup Information:

  • Version of Rocket.Chat Server: 0.73.2
  • Operating System: Ubuntu 18.04
  • Deployment Method: snap
  • Number of Running Instances: 1
  • SimpleSAMLphp version 1.17
@tuxcrafter
Copy link

tuxcrafter commented Apr 2, 2019

Did you ever got SLO to work with rocketchat. I am questioning it worked in the first place. We are having the same error with Ipsilon IdP

@barrydegraaff
Copy link

I can confirm this issue, the type error is thrown in:
programs/server/packages/steffo_meteor-accounts-saml.js

As a result of this line of code, where samlResponse is emtpy
const compressedSAMLResponse = new Buffer(samlResponse, 'base64');

This line of code is in the validateLogoutResponse method, that is called from a case statement earlier in the code where req.query.SAMLResponse seems to be empty.

I think this means SAML SLO is broken in Rocket ATM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants