Ylianst / MeshCentral

A complete web-based remote monitoring and management web site. Once setup you can install agents and perform remote desktop session to devices on the local network or over the Internet.
https://meshcentral.com
Apache License 2.0
4.18k stars 562 forks source link

SAML2 Logout #3202

Closed joshgfuk closed 2 years ago

joshgfuk commented 3 years ago

Hi Ylianst

Thanks for creating this fantastic software.

Can you please add a feature where we can change the logout URL?

I have my MeshCentral setup using Office 365 and creating users upon login etc, then root redirect to the SAML URL?

Or in the code is there a way for me to manually do this?

Ylianst commented 3 years ago

I will add that. When a user clicks "Logout", it will clear the MeshCentral session cookie and redirect to a URL you specify. That hopefully should do it.

Ylianst commented 3 years ago

Just added it, will be in MeshCentral v0.9.35. Whatever authStratery you are using, all the "logouturl" key to the URL to want users redirected when they hit "logout" on the web site.

      "authStrategies": {
        "saml": {
          "callbackurl": "https://sample.com/auth-saml-callback",
          "entityid": "meshcentral",
          "idpurl": "https://sso.jumpcloud.com/saml2/saml2",
          "cert": "jumpcloud-saml.pem",
          "logouturl": "https://sample.com/logout.htm"                    <-----
        }
      }

Once published, try it and let me know if that works.