You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -100,7 +100,7 @@ This section shows how to implement login leveraging implicit flow. This is the
100
100
Single Page Application. It sends the user to the Identity Provider's login page. After logging in, the SPA gets tokens.
101
101
This also allows for single sign on as well as single sign off.
102
102
103
-
To configure the library the following sample uses the new configuration API introduced with Version 2.1.
103
+
To configure the library, the following sample uses the new configuration API introduced with Version 2.1.
104
104
Hence, the original API is still supported.
105
105
106
106
```TypeScript
@@ -229,7 +229,7 @@ var headers = new HttpHeaders({
229
229
});
230
230
```
231
231
232
-
Since 3.1 you can also automate this task by switching ``sendAccessToken`` on and by setting ``allowedUrls`` to an array with prefixes for the respective urls. Use lower case for the prefixes.
232
+
Since 3.1 you can also automate this task by switching ``sendAccessToken`` on and by setting ``allowedUrls`` to an array with prefixes for the respective URLs. Use lower case for the prefixes.
233
233
234
234
```TypeScript
235
235
OAuthModule.forRoot({
@@ -250,10 +250,11 @@ See the [documentation](https://manfredsteyer.github.io/angular-oauth2-oidc/docs
250
250
251
251
## Tutorials
252
252
253
+
*[Tutorial with Demo Servers available online](https://www.softwarearchitekt.at/post/2016/07/03/authentication-in-angular-2-with-oauth2-oidc-and-guards-for-the-newest-new-router-english-version.aspx)
253
254
*[Angular Authentication with OpenID Connect and Okta in 20 Minutes](https://developer.okta.com/blog/2017/04/17/angular-authentication-with-oidc)
254
255
*[Add Authentication to Your Angular PWA](https://developer.okta.com/blog/2017/06/13/add-authentication-angular-pwa)
255
256
*[Build an Ionic App with User Authentication](https://developer.okta.com/blog/2017/08/22/build-an-ionic-app-with-user-authentication)
Copy file name to clipboardExpand all lines: docs-src/silent-refresh.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ this
70
70
.catch(err=>console.error('refresh error', err));
71
71
```
72
72
73
-
When there is an error in the iframe that prevents the communication with the main application, silentRefresh will give you a timeout. To configure the timespan for this, you can set the property ``siletRefreshTimeout`` (msec). The default value is 20.000 (20 seconds).
73
+
When there is an error in the iframe that prevents the communication with the main application, silentRefresh will give you a timeout. To configure the timespan for this, you can set the property ``silentRefreshTimeout`` (msec). The default value is 20.000 (20 seconds).
74
74
75
75
### Automatically refreshing a token when/ before it expires
.catch(err => console.error('refresh error', err));</code></pre><p>When there is an error in the iframe that prevents the communication with the main application, silentRefresh will give you a timeout. To configure the timespan for this, you can set the property <code>siletRefreshTimeout</code> (msec). The default value is 20.000 (20 seconds).</p>
658
+
.catch(err => console.error('refresh error', err));</code></pre><p>When there is an error in the iframe that prevents the communication with the main application, silentRefresh will give you a timeout. To configure the timespan for this, you can set the property <code>silentRefreshTimeout</code> (msec). The default value is 20.000 (20 seconds).</p>
659
659
<h3id="automatically-refreshing-a-token-when-before-it-expires">Automatically refreshing a token when/ before it expires</h3>
660
660
<p>To automatically refresh a token when/ some time before it expires, just call the following method after configuring the OAuthService:</p>
661
661
<preclass="line-numbers"><codeclass="language-TypeScript">this.oauthService.setupAutomaticSilentRefresh();</code></pre><p>By default, this event is fired after 75% of the token's life time is over. You can adjust this factor by setting the property <code>timeoutFactor</code> to a value between 0 and 1. For instance, 0.5 means, that the event is fired after half of the life time is over and 0.33 triggers the event after a third.</p>
0 commit comments