You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
When OIDC is set up, the logout action redirects to https://hostname/logout page without any redirection and actually logging out of OIDC provider. So, when a user logs in, there is no way to log out.
Preconditions
Install Wazuh 4.3.9 using Wazuh-Indexer and Wazuh-Dashboard.
Redirect to http://auth-server/auth/realms/{realm-name}/protocol/openid-connect/logout?redirect_uri=encodedRedirectUri, where encoded redirect URI is the encoded format of https://hostname/app/login: https%3A%2F%2Fhostname%2Fapp%2Flogin.
Log out of the session by the use of redirection.
Display Wazuh login page.
Actual Result
Redirects to https://hostname/logout and gets HTTP 404 Not Found result.
Screenshots
Sample Wazuh SSO login screen using Keycloak
Logging out
Logout result Additional context
There is a similar issue related to logout created in April.
When you look at the code for logging out, there is no mention of handling those kinds of requests.
The text was updated successfully, but these errors were encountered:
Thanks for reporting this @zbalkan we're fixing this also for SAML in #4779, I believe the same fix will apply to all the auth methods which differ from the internal one.
Another question. Does the merged PR handles logout for Wazuh session or for SSO provider? Because the latter would mean that unintentionally, user can log out of the SSO provider.
AlexRuiz7
changed the title
Cannout log out when OpenID Connect is set up
Cannot log out when OpenID Connect is set up
Nov 9, 2022
Description
When OIDC is set up, the logout action redirects to https://hostname/logout page without any redirection and actually logging out of OIDC provider. So, when a user logs in, there is no way to log out.
Preconditions
Steps to reproduce
Expected Result
http://auth-server/auth/realms/{realm-name}/protocol/openid-connect/logout?redirect_uri=encodedRedirectUri
, where encoded redirect URI is the encoded format ofhttps://hostname/app/login
:https%3A%2F%2Fhostname%2Fapp%2Flogin
.Actual Result
https://hostname/logout
and gets HTTP 404 Not Found result.Screenshots

Sample Wazuh SSO login screen using Keycloak
Logging out
Logout result
Additional context
The text was updated successfully, but these errors were encountered: