From fd063fd5b370c347ca5b164e8a92f2c0b4060637 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Fri, 17 Apr 2020 15:59:44 -0400 Subject: [PATCH] fix(web(js)): handle SAML assertion expiration --- UI/WebServerResources/js/Common/Common.app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UI/WebServerResources/js/Common/Common.app.js b/UI/WebServerResources/js/Common/Common.app.js index 365b3fc89..ae2812417 100644 --- a/UI/WebServerResources/js/Common/Common.app.js +++ b/UI/WebServerResources/js/Common/Common.app.js @@ -361,10 +361,10 @@ var $state; if (/^application\/json/.test(rejection.config.headers.Accept)) { // Handle CAS ticket renewal - if ($window.usesCASAuthentication && rejection.status == -1) { + if (($window.usesCASAuthentication || $window.usesSAML2Authentication) && rejection.status == -1) { return renewTicket($window, $q, $timeout, $injector, rejection); } - else if ($window.usesSAML2Authentication && (rejection.status == 401 || rejection.status == -1) && !$window.recovered) { + else if ($window.usesSAML2Authentication && rejection.status == 401 && !$window.recovered) { $state = $injector.get('$state'); angular.element($window).off('beforeunload'); $window.recovered = true;