fix(eas): Fix error 500 when SOGoCacheCleanup triggered cleanup with shibboleth 4.2.1. Fore refresh ticket in iFrame in this case

This commit is contained in:
smizrahi
2023-04-17 10:53:23 +02:00
parent 46215aca87
commit 5500ce7085
3 changed files with 5 additions and 3 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -362,7 +362,9 @@
var $state;
if (/^application\/json/.test(rejection.config.headers.Accept)) {
// Handle SSO ticket renewal
if (($window.usesCASAuthentication || $window.usesSAML2Authentication) && rejection.status == -1) {
if (($window.usesCASAuthentication || $window.usesSAML2Authentication)
&& (rejection.status == -1
|| (rejection.status == 500 && rejection.config && rejection.config.url && rejection.config.url.indexOf("execution=e1s1") > 0))) { // Patch for shibboleth 4.2.1 - Ticket #5615
return renewTicket($window, $q, $timeout, $injector, rejection);
}
else if ($window.usesSAML2Authentication && rejection.status == 401 && !$window.recovered) {