mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-30 14:25:42 +00:00
Fix SAML2 session timeout during XHR requests
This commit is contained in:
1 parent
e6e1fddb3e
commit
162206b934
4 files changed
+19
-2
No files matched your search
@@ -267,9 +267,10 @@
|
||||
var deferred, iframe;
|
||||
if (/^application\/json/.test(rejection.config.headers.Accept)) {
|
||||
// Handle CAS ticket renewal
|
||||
if ($window.usesCASAuthentication && rejection.status == -1) {
|
||||
if (($window.usesCASAuthentication && rejection.status == -1) ||
|
||||
($window.usesSAML2Authentication && rejection.status == 401)) {
|
||||
deferred = $q.defer();
|
||||
iframe = angular.element('<iframe class="ng-hide" src="' + UserFolderURL + 'recover"></iframe>');
|
||||
iframe = angular.element('<iframe class="ng-hide" src="' + $window.UserFolderURL + 'recover"></iframe>');
|
||||
iframe.on('load', function() {
|
||||
// Once the browser has followed the redirection, send the initial request
|
||||
var $http = $injector.get('$http');
|
||||
|
||||
Reference in new issue
Block a user