File tree 2 files changed +3
-5
lines changed
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ All notable changes to the Wazuh app project will be documented in this file.
27
27
- Fixed persistence of the plugin registry file between updates [ #4359 ] ( https://github.com/wazuh/wazuh-kibana-app/pull/4359 )
28
28
- Fixed searchbar error on SCA Inventory table [ #4367 ] ( https://github.com/wazuh/wazuh-kibana-app/pull/4367 )
29
29
- Fixed a routes loop when reinstalling Wazuh indexer [ #4373 ] ( https://github.com/wazuh/wazuh-kibana-app/pull/4373 )
30
+ - Fixed issue when logging out from Wazuh when SAML is enabled [ #4815 ] ( https://github.com/wazuh/wazuh-kibana-app/issues/4815 )
30
31
31
32
# Removed
32
33
Original file line number Diff line number Diff line change @@ -111,9 +111,6 @@ app.run(function ($rootElement) {
111
111
// Add plugin help links as extension to plugin platform help menu
112
112
addHelpMenuToAppChrome ( ) ;
113
113
114
-
115
- const urlToLogout = getHttp ( ) . basePath . prepend ( '/logout' ) ;
116
-
117
114
// Bind deleteExistentToken on Log out component.
118
115
$ ( '.euiHeaderSectionItem__button, .euiHeaderSectionItemButton' ) . on ( 'mouseleave' , function ( ) {
119
116
// opendistro
@@ -123,14 +120,14 @@ app.run(function ($rootElement) {
123
120
// x-pack
124
121
$ ( 'a:contains(Log out)' ) . on ( 'click' , function ( event ) {
125
122
// Override href's behaviour and navigate programatically
126
- // to '/ logout' once the token has been deleted.
123
+ // to the logout path once the token has been deleted.
127
124
event . preventDefault ( ) ;
128
125
WzAuthentication . deleteExistentToken ( )
129
126
. catch ( ( err ) => {
130
127
console . error ( '[ERROR] - User token could not be deprecated - ' , err ) ;
131
128
} )
132
129
. finally ( ( ) => {
133
- window . location = urlToLogout ;
130
+ window . location = event . currentTarget . href ;
134
131
} ) ;
135
132
} ) ;
136
133
} ) ;
You can’t perform that action at this time.
0 commit comments