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;