# SAML logout don't work

**URL:** <https://forum.opensearch.org/t/saml-logout-dont-work/20347>\
**Category:** OpenSearch Dashboards\
**Created:** [July 17, 2024, 11:03am UTC](https://forum.opensearch.org/t/saml-logout-dont-work/20347 "2024-07-17T11:03:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ComBin](https://avatars.discourse-cdn.com/v4/letter/c/a88e57/32.png) [@ComBin](https://forum.opensearch.org/u/ComBin)\
**Post date:** [July 17, 2024, 11:03am UTC](https://forum.opensearch.org/t/saml-logout-dont-work/20347/1 "2024-07-17T11:03:32Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser):  
2.14

**Describe the issue** :  
We using Microsoft ADFS as SAML authentication. Login woks fine. But logout doesn’t. While logout user in browser see error: “An error occurred. Contact your administrator for more information”. On SAML server side we see: “MSIS7084: SAML logout request and logout response messages must be signed when using SAML HTTP Redirect or HTTP POST binding”, but signature in our configuration is disabled.

**Configuration** :

```auto
opensearch.requestTimeout: 240000
opensearch.pingTimeout: 6000
opensearch.hosts:
- https://hostname:9200
opensearch.username: opensearch_dashboards
opensearch.password: password
opensearch.ssl.certificateAuthorities:
- "/path/to/ca"
logging.dest: "/var/log/opensearch-dashboards/opensearch-dashboards.log"
opensearch.logQueries: false
logging.verbose: false
opensearch_security.ui.basicauth.login.title: Login message
opensearch_security.auth.type:
- basicauth
- saml
opensearch_security.auth.multiple_auth_enabled: true
server.xsrf.allowlist:
- "/_opendistro/_security/saml/acs/idpinitiated"
- "/_opendistro/_security/saml/acs"
- "/_opendistro/_security/saml/logout"

```

**Relevant Logs or Screenshots** :  
Don’t see any errors in logs:

```auto
{"type":"response","@timestamp":"2024-07-17T10:59:57Z","tags":[],"pid":173713,"method":"get","statusCode":302,"req":{"url":"/auth/saml/logout","method":"get","headers":{"host":"dashboard.domain","x-real-ip":"10.48.2.154","connection":"close","sec-ch-ua":"\"Not/A)Brand\";v=\"8\", \"Chromium\";v=\"126\", \"Brave\";v=\"126\"","sec-ch-ua-mobile":"?0","sec-ch-ua-platform":"\"Windows\"","upgrade-insecure-requests":"1","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0Safari/537.36","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8","sec-gpc":"1","sec-fetch-site":"same-origin","sec-fetch-mode":"navigate","sec-fetch-user":"?1","sec-fetch-dest":"document","referer":"https://dashboard.domain/app/home","accept-encoding":"gzip, deflate, br, zstd","accept-language":"en-US,en;q=0.9,ru;q=0.8","priority":"u=0, i"},"remoteAddress":"127.0.0.1","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36","referer":"https://dashboard.domain/app/home"},"res":{"statusCode":302,"responseTime":24,"contentLength":9},"message":"GET /auth/saml/logout 302 24ms - 9.0B"}

```

![image](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/1/12ccf88d534b91e31c94c7a9ef813f81b51b8fd8.png)

---

<div class="post-metadata">

**Author:** ![Gsmitt](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/gsmitt/32/1718_2.png) [@Gsmitt](https://forum.opensearch.org/u/Gsmitt)\
**Post date:** [July 21, 2024, 6:49pm UTC](https://forum.opensearch.org/t/saml-logout-dont-work/20347/2 "2024-07-21T18:49:03Z")

</div>

hey @ComBin

I had that logout issue. This is how I fixed it.

> **[GitHub - HungryHowies/Zitadel-with-Opensearch-SSO: Basic Configuration to...](https://github.com/HungryHowies/Zitadel-with-Opensearch-SSO?tab=readme-ov-file#opensearch-logging-off-with-404)**
>
> Basic Configuration to Opensearch SAML SSO. Contribute to HungryHowies/Zitadel-with-Opensearch-SSO development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![pablo](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/pablo/32/10363_2.png) [@pablo](https://forum.opensearch.org/u/pablo)\
**Post date:** [July 23, 2024, 9:18am UTC](https://forum.opensearch.org/t/saml-logout-dont-work/20347/3 "2024-07-23T09:18:09Z")

</div>

@ComBin This is a very old issue. I get the same error and I couldn’t find solution yet.  
Soultion suggested by @Gsmitt works for 404 but in this case it will never log you out.

---

<div class="post-metadata">

**Author:** ![ComBin](https://avatars.discourse-cdn.com/v4/letter/c/a88e57/32.png) [@ComBin](https://forum.opensearch.org/u/ComBin)\
**Post date:** [July 29, 2024, 7:25pm UTC](https://forum.opensearch.org/t/saml-logout-dont-work/20347/4 "2024-07-29T19:25:18Z")

</div>

Hello all. I know about your solution @Gsmitt and use it now, thank you very much for it! But it’s not OK to change code manually. At least it’s not comfortable do it every update. So it must be solution via changing configuration or via changing code on developers side.

I created issue ([[BUG] SAML logout don't work · Issue #1788 · opensearch-project/security-dashboards-plugin · GitHub](https://github.com/opensearch-project/security-dashboards-plugin/issues/1788)), but it was closed by **[derek-ho](https://github.com/derek-ho)** with remark “This sounds like a support request”, so i’m here.
