Skip to content

Commit 4cd99d6

Browse files
committed
last tests for v8
1 parent 4ee15b9 commit 4cd99d6

File tree

67 files changed

+9315
-6976
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+9315
-6976
lines changed

docs/additional-documentation/adapt-id_token-validation.html

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343

4444

4545

46+
4647

4748

4849

docs/additional-documentation/callback-after-login.html

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343

4444

4545

46+
4647

4748

4849

docs/additional-documentation/code-flow-+-pcke.html

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343

4444

4545

46+
4647

4748

4849

docs/additional-documentation/configure-custom-oauthstorage.html

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343

4444

4545

46+
4647

4748

4849

docs/additional-documentation/configure-library-for-implicit-flow-without-discovery-document.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,12 @@
4343

4444

4545

46+
4647

4748

4849

4950

50-
<h1 id="configure-library-for-implicit-flow-without-discovery-document-">Configure Library for Implicit Flow (without discovery document)</h1>
51+
<h1 id="configure-library-for-implicit-flow-without-discovery-document">Configure Library for Implicit Flow (without discovery document)</h1>
5152
<p>When you don&#39;t have a discovery document, you have to configure more properties manually:</p>
5253
<p>Please note that the following sample uses the original config API. For information about the new config API have a look to the project&#39;s README above.</p>
5354
<div><pre class="line-numbers"><code class="language-TypeScript">&#64;Component({ ... })

docs/additional-documentation/custom-query-parameters.html

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343

4444

4545

46+
4647

4748

4849

docs/additional-documentation/events.html

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343

4444

4545

46+
4647

4748

4849

docs/additional-documentation/getting-started.html

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343

4444

4545

46+
4647

4748

4849

docs/additional-documentation/original-config-api.html

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343

4444

4545

46+
4647

4748

4849

docs/additional-documentation/preserving-state-(like-the-requested-url).html

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,12 @@
4343

4444

4545

46+
4647

4748

4849

4950

50-
<h1 id="preserving-state-like-the-requested-url-">Preserving State (like the Requested URL)</h1>
51+
<h1 id="preserving-state-like-the-requested-url">Preserving State (like the Requested URL)</h1>
5152
<p>When calling <code>initImplicitFlow</code>, you can pass an optional state which could be the requested url:</p>
5253
<div><pre class="line-numbers"><code class="language-TypeScript">this.oauthService.initImplicitFlow(&#39;http://www.myurl.com/x/y/z&#39;);</code></pre></div><p>After login succeeded, you can read this state:</p>
5354
<div><pre class="line-numbers"><code class="language-TypeScript">this.oauthService.tryLogin({

docs/additional-documentation/refreshing-a-token.html

+4-3
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,15 @@
4343

4444

4545

46+
4647

4748

4849

4950

5051
<h1 id="refreshing-a-token">Refreshing a Token</h1>
5152
<p>The strategy to use for refreshing your token differs between implicit flow and code flow. Hence, you find here one separate section for both of them.</p>
5253
<p>The last section shows how to automate refreshing for both flows.</p>
53-
<h2 id="refreshing-when-using-code-flow-not-implicit-flow-">Refreshing when using Code Flow (not Implicit Flow!)</h2>
54+
<h2 id="refreshing-when-using-code-flow-not-implicit-flow">Refreshing when using Code Flow (not Implicit Flow!)</h2>
5455
<blockquote>
5556
<blockquote>
5657
<p>For refreshing a token with implicit flow, please see section below!</p>
@@ -59,7 +60,7 @@ <h2 id="refreshing-when-using-code-flow-not-implicit-flow-">Refreshing when usin
5960
<p>When using code flow, you can get an <code>refresh_token</code>. While the original standard DOES NOT allow this for SPAs, the mentioned document proposes to ease this limitation. However, it specifies a list of requirements one should take care about before using refresh_tokens. Please make sure you respect those requirements.</p>
6061
<p>Please also note, that you have to request the <code>offline_access</code> scope to get an refresh token.</p>
6162
<p>To refresh your token, just call the <code>refresh</code> method:</p>
62-
<div><pre class="line-numbers"><code class="language-typescript">this.oauthService.refresh();</code></pre></div><h2 id="refreshing-when-using-implicit-flow-not-code-flow-">Refreshing when using Implicit Flow (not Code Flow!)</h2>
63+
<div><pre class="line-numbers"><code class="language-typescript">this.oauthService.refresh();</code></pre></div><h2 id="refreshing-when-using-implicit-flow-not-code-flow">Refreshing when using Implicit Flow (not Code Flow!)</h2>
6364
<p>To refresh your tokens when using implicit flow you can use a silent refresh. This is a well-known solution that compensates the fact that implicit flow does not allow for issuing a refresh token. It uses a hidden iframe to get another token from the auth server. When the user is there still logged in (by using a cookie) it will respond without user interaction and provide new tokens.</p>
6465
<p>To use this approach, setup a redirect uri for the silent refresh.</p>
6566
<p>For this, you can set the property silentRefreshRedirectUri in the config object:</p>
@@ -103,7 +104,7 @@ <h2 id="refreshing-when-using-code-flow-not-implicit-flow-">Refreshing when usin
103104
.silentRefresh()
104105
.then(info =&gt; console.debug(&#39;refresh ok&#39;, info))
105106
.catch(err =&gt; console.error(&#39;refresh error&#39;, err));</code></pre></div><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>
106-
<h3 id="automatically-refreshing-a-token-when-before-it-expires-code-flow-and-implicit-flow-">Automatically refreshing a token when/ before it expires (Code Flow and Implicit Flow)</h3>
107+
<h3 id="automatically-refreshing-a-token-when-before-it-expires-code-flow-and-implicit-flow">Automatically refreshing a token when/ before it expires (Code Flow and Implicit Flow)</h3>
107108
<p>To automatically refresh a token when/ some time before it expires, just call the following method after configuring the OAuthService:</p>
108109
<div><pre class="line-numbers"><code class="language-TypeScript">this.oauthService.setupAutomaticSilentRefresh();</code></pre></div><p>By default, this event is fired after 75% of the token&#39;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>
109110

docs/additional-documentation/routing-with-the-hashstrategy.html

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343

4444

4545

46+
4647

4748

4849

docs/additional-documentation/server-side-rendering.html

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343

4444

4545

46+
4647

4748

4849

docs/additional-documentation/session-checks.html

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343

4444

4545

46+
4647

4748

4849

docs/additional-documentation/using-an-id-provider-that-fails-discovery-document-validation.html

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343

4444

4545

46+
4647

4748

4849

docs/additional-documentation/using-password-flow.html

+4-3
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343

4444

4545

46+
4647

4748

4849

@@ -51,7 +52,7 @@ <h1 id="using-password-flow">Using Password-Flow</h1>
5152
<p>This section shows how to use the password flow, which demands the user to directly enter his or her password into the client.</p>
5253
<p>Please note that from an OAuth2/OIDC perspective, the implicit flow is better suited for logging into a SPA and the flow described here should only be used,
5354
when a) there is a strong trust relations ship between the client and the auth server and when b) other flows are not possible.</p>
54-
<h2 id="configure-library-for-password-flow-using-discovery-document-">Configure Library for Password Flow (using discovery document)</h2>
55+
<h2 id="configure-library-for-password-flow-using-discovery-document">Configure Library for Password Flow (using discovery document)</h2>
5556
<p>To configure the library you just have to set some properties on startup. For this, the following sample uses the constructor of the AppComponent which is called before routing kicks in.</p>
5657
<p>Please not, that this configuration is quite similar to the one for the implcit flow.</p>
5758
<div><pre class="line-numbers"><code class="language-TypeScript">&#64;Component({ ... })
@@ -85,7 +86,7 @@ <h2 id="configure-library-for-password-flow-using-discovery-document-">Configure
8586

8687
}
8788

88-
}</code></pre></div><h2 id="configure-library-for-password-flow-without-discovery-document-">Configure Library for Password Flow (without discovery document)</h2>
89+
}</code></pre></div><h2 id="configure-library-for-password-flow-without-discovery-document">Configure Library for Password Flow (without discovery document)</h2>
8990
<p>In cases where you don&#39;t have an OIDC based discovery document you have to configure some more properties manually:</p>
9091
<div><pre class="line-numbers"><code class="language-TypeScript">&#64;Component({ ... })
9192
export class AppComponent {
@@ -116,7 +117,7 @@ <h2 id="configure-library-for-password-flow-using-discovery-document-">Configure
116117

117118
}
118119

119-
}</code></pre></div><h2 id="fetching-an-access-token-by-providing-the-current-user-s-credentials">Fetching an Access Token by providing the current user&#39;s credentials</h2>
120+
}</code></pre></div><h2 id="fetching-an-access-token-by-providing-the-current-users-credentials">Fetching an Access Token by providing the current user&#39;s credentials</h2>
120121
<div><pre class="line-numbers"><code class="language-TypeScript">this.oauthService.fetchTokenUsingPasswordFlow(&#39;max&#39;, &#39;geheim&#39;).then((resp) =&gt; {
121122

122123
// Loading data about the user

docs/additional-documentation/using-systemjs.html

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343

4444

4545

46+
4647

4748

4849

docs/additional-documentation/working-with-httpinterceptors.html

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343

4444

4545

46+
4647

4748

4849

docs/changelog.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<h1 id="change-log">Change Log</h1>
3434
<h2 id="lates-features">Lates features</h2>
3535
<p>See <a href="https://github.com/manfredsteyer/angular-oauth2-oidc/releases">Release Notes</a></p>
36-
<h2 id="new-features-in-version-2-1">New Features in Version 2.1</h2>
36+
<h2 id="new-features-in-version-21">New Features in Version 2.1</h2>
3737
<ul>
3838
<li>New Config API (the original one is still supported)</li>
3939
<li>New convenience methods in OAuthService to streamline default tasks:<ul>
@@ -74,6 +74,7 @@ <h2 id="breaking-changes-in-version-2">Breaking Changes in Version 2</h2>
7474

7575

7676

77+
7778

7879

7980

0 commit comments

Comments
 (0)