mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-21 11:25:24 +00:00
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:
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) {
|
||||
|
||||
Reference in New Issue
Block a user