angular-oauth2-oidc
Advanced tools
Comparing version 2.0.8 to 2.0.9
@@ -206,2 +206,7 @@ (function (global, factory) { | ||
/** | ||
* Set this to true to display the iframe used for | ||
silent refresh for debugging. | ||
*/ | ||
this.silentRefreshShowIFrame = false; | ||
/** | ||
* Timeout for silent refresh. | ||
@@ -347,2 +352,3 @@ */ | ||
OAuthService.prototype.setupIdTokenTimer = function () { | ||
var _this = this; | ||
var /** @type {?} */ expiration = this.getAccessTokenExpiration(); | ||
@@ -354,3 +360,3 @@ var /** @type {?} */ timeout = this.calcTimeout(expiration); | ||
.delay(timeout) | ||
.subscribe(this.eventsSubject); | ||
.subscribe(function (e) { return _this.eventsSubject.next(e); }); | ||
}; | ||
@@ -706,3 +712,5 @@ /** | ||
iframe.setAttribute('src', url); | ||
iframe.style.visibility = 'hidden'; | ||
if (!_this.silentRefreshShowIFrame) { | ||
iframe.style.visibility = 'hidden'; | ||
} | ||
document.body.appendChild(iframe); | ||
@@ -709,0 +717,0 @@ }); |
12
index.js
@@ -215,2 +215,7 @@ import { Injectable, NgModule } from '@angular/core'; | ||
/** | ||
* Set this to true to display the iframe used for | ||
silent refresh for debugging. | ||
*/ | ||
this.silentRefreshShowIFrame = false; | ||
/** | ||
* Timeout for silent refresh. | ||
@@ -356,2 +361,3 @@ */ | ||
OAuthService.prototype.setupIdTokenTimer = function () { | ||
var _this = this; | ||
var /** @type {?} */ expiration = this.getAccessTokenExpiration(); | ||
@@ -363,3 +369,3 @@ var /** @type {?} */ timeout = this.calcTimeout(expiration); | ||
.delay(timeout) | ||
.subscribe(this.eventsSubject); | ||
.subscribe(function (e) { return _this.eventsSubject.next(e); }); | ||
}; | ||
@@ -715,3 +721,5 @@ /** | ||
iframe.setAttribute('src', url); | ||
iframe.style.visibility = 'hidden'; | ||
if (!_this.silentRefreshShowIFrame) { | ||
iframe.style.visibility = 'hidden'; | ||
} | ||
document.body.appendChild(iframe); | ||
@@ -718,0 +726,0 @@ }); |
@@ -87,2 +87,7 @@ import { Http, Headers } from '@angular/http'; | ||
/** | ||
* Set this to true to display the iframe used for | ||
* silent refresh for debugging. | ||
*/ | ||
silentRefreshShowIFrame: boolean; | ||
/** | ||
* Timeout for silent refresh. | ||
@@ -89,0 +94,0 @@ */ |
{ | ||
"name": "angular-oauth2-oidc", | ||
"version": "2.0.8", | ||
"version": "2.0.9", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
162224
3557