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