This is an automated email from the ASF dual-hosted git repository. heneveld pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/brooklyn-ui.git
commit ed47bb35de785fc3fd5925f4955b4bbfe6f54b52 Author: Juan Cabrerizo <[email protected]> AuthorDate: Mon Sep 6 14:21:53 2021 +0100 Forzing wrong login attept for invalidating basic auth --- ui-modules/logout/app/views/main/main.controller.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ui-modules/logout/app/views/main/main.controller.js b/ui-modules/logout/app/views/main/main.controller.js index 7fda72f..15b968e 100644 --- a/ui-modules/logout/app/views/main/main.controller.js +++ b/ui-modules/logout/app/views/main/main.controller.js @@ -80,6 +80,15 @@ export function mainStateController($scope, $http, $state, $stateParams, $log, $ let ua = window.navigator.userAgent; if (ua.indexOf('MSIE ') >= 0 || ua.indexOf(' Edge/') >= 0 || ua.indexOf(' Trident/') >= 0) { document.execCommand('ClearAuthenticationCache', 'false'); + } else if (ua.indexOf('Mozilla') >= 0) { + console.log('logging out') + $http({ + method: 'GET', + url: '/', + headers: { + 'Authorization': 'Basic ' + btoa("logout:logout") + } + }); } }
