Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
HAWKULAR-444 - Clear token on timeout, so that background requests ar…
Browse files Browse the repository at this point in the history
…e blocked.
  • Loading branch information
jpkrohling committed Jul 14, 2015
1 parent 640b86a commit 161c4eb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 4 additions & 2 deletions console/src/main/scripts/bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"hawtio-oauth": "2.0.7",
"lodash": "3.2.0",
"moment": "2.10.3",
"patternfly": "1.3.0"
"patternfly": "1.3.0",
"keycloak": "1.3.1"
},
"devDependencies": {
"angular-mocks": "1.4.2",
Expand All @@ -39,6 +40,7 @@
"resolutions": {
"patternfly": "1.3.0",
"angular": "1.4.2",
"angular-resource": "1.4.2"
"angular-resource": "1.4.2",
"keycloak": "1.3.1"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ module HawkularAccounts {
$document.find('body').eq(0).addClass('inactivity-modal-open');
$modal.open({
templateUrl: 'plugins/accounts/html/inactivityModal.html',
backdrop: 'static'
backdrop: 'static',
keyboard: false
}).opened.then(() => {
HawtioKeycloak.keycloak.clearToken();
});
});

Expand Down

0 comments on commit 161c4eb

Please sign in to comment.