fix(web(js)): handle SAML assertion expiration
parent
cf91b2dcbb
commit
433da56b23
|
@ -301,8 +301,8 @@
|
|||
|
||||
iframe.on('load', function() {
|
||||
var $state = $injector.get('$state');
|
||||
if (response.config.attempt) {
|
||||
// Already attempted once -- reload page
|
||||
if (response.config.attempt > 2) {
|
||||
// Already attempted 3 times -- reload page
|
||||
angular.element($window).off('beforeunload');
|
||||
$window.location.href = $window.ApplicationBaseURL + $state.href($state.current);
|
||||
deferred.reject();
|
||||
|
@ -311,6 +311,9 @@
|
|||
// Once the browser has followed the redirection, send the initial request
|
||||
$timeout(function() {
|
||||
var $http = $injector.get('$http');
|
||||
if (response.config.attempt)
|
||||
response.config.attempt++;
|
||||
else
|
||||
response.config.attempt = 1;
|
||||
$http(response.config).then(function(response) {
|
||||
deferred.resolve(response);
|
||||
|
|
Loading…
Reference in New Issue