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 @@ -107,9 +107,6 @@ app.run(['$rootElement', function ($rootElement) {
107
107
// Add plugin help links as extension to plugin platform help menu
108
108
addHelpMenuToAppChrome ( ) ;
109
109
110
-
111
- const urlToLogout = getHttp ( ) . basePath . prepend ( '/logout' ) ;
112
-
113
110
// Bind deleteExistentToken on Log out component.
114
111
$ ( '.euiHeaderSectionItem__button, .euiHeaderSectionItemButton' ) . on ( 'mouseleave' , function ( ) {
115
112
// opendistro
@@ -119,14 +116,14 @@ app.run(['$rootElement', function ($rootElement) {
119
116
// x-pack
120
117
$ ( 'a:contains(Log out)' ) . on ( 'click' , function ( event ) {
121
118
// Override href's behaviour and navigate programatically
122
- // to '/ logout' once the token has been deleted.
119
+ // to the logout path once the token has been deleted.
123
120
event . preventDefault ( ) ;
124
121
WzAuthentication . deleteExistentToken ( )
125
122
. catch ( ( err ) => {
126
123
console . error ( '[ERROR] - User token could not be deprecated - ' , err ) ;
127
124
} )
128
125
. finally ( ( ) => {
129
- window . location = urlToLogout ;
126
+ window . location = event . currentTarget . href ;
130
127
} ) ;
131
128
} ) ;
132
129
} ) ;
You can’t perform that action at this time.
0 commit comments