mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-03 04:18:51 +00:00
fix(web(js)): handle SAML assertion expiration
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user