fix(web(js)): handle SAML assertion expiration

This commit is contained in:
Francis Lachapelle
2020-04-17 09:50:43 -04:00
parent 0683dafc22
commit 64461764c8
@@ -364,7 +364,7 @@
if ($window.usesCASAuthentication && rejection.status == -1) {
return renewTicket($window, $q, $timeout, $injector, rejection);
}
else if ($window.usesSAML2Authentication && rejection.status == 401 && !$window.recovered) {
else if ($window.usesSAML2Authentication && (rejection.status == 401 || rejection.status == -1) && !$window.recovered) {
$state = $injector.get('$state');
angular.element($window).off('beforeunload');
$window.recovered = true;