Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
Opensearch Dashboards v2.19.1
Describe the issue:
I am trying to setup backchannel logout with Keycloak Idp and I am having trouble providing the correct logout URL for Dashboards. I do not see anything mentioned in documentation and there is very little discussion in community about this. Every endpoint I provide, I see a 404 Not Found response in the Dashboard logs. We are able to log out normally from the Dashboards side, however we also want to be able to initiate logout from Kecyloak side. I have tried multiple endpoints that I have come across in other posts and also looking thru the source code.
Here are the endpoints I have tried with no success:
https://{dashbaords IP}/auth/logout
https://{dashboards IP}/auth/openid/logout
https://{dashboards IP}/api/v1/auth/logout
https://{dashboards IP}/auth/saml/logout
https://{dashboards IP}/auth/anonymous/logout
https://{dashboards IP}/auth/proxy/logout
Example of response from Dashboards logs:
{"type":"response","@timestamp":"2025-03-27T19:25:18Z","tags":[],"pid":1,"method":"post","statusCode":404,"req":{"url":"/api/v1/auth/logout","method":"post","headers":{"content-length":"933","content-type":"application/x-www-form-urlencoded","host":"w.x.y.z","connection":"Keep-Alive","user-agent":"Apache-HttpClient/4.5.14 (Java/21.0.5)","accept-encoding":"gzip,deflate"},"remoteAddress":"w.x.y.z","userAgent":"Apache-HttpClient/4.5.14 (Java/21.0.5)"},"res":{"statusCode":404,"responseTime":6,"contentLength":9},"message":"POST /api/v1/auth/logout 404 6ms - 9.0B"}