Skip to content

Commit f1d3c38

Browse files
committed
prepare v16
1 parent f5d940c commit f1d3c38

File tree

100 files changed

+3279
-1709
lines changed

Some content is hidden

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

100 files changed

+3279
-1709
lines changed

.vscode/settings.json

+10-1
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,14 @@
3232
"latex",
3333
"plaintext",
3434
"markdown"
35-
]
35+
],
36+
"files.exclude": {
37+
"**/.git": true,
38+
"**/.svn": true,
39+
"**/.hg": true,
40+
"**/CVS": true,
41+
"**/.DS_Store": true,
42+
"**/Thumbs.db": true
43+
},
44+
"hide-files.files": []
3645
}

CHANGELOG.md

-10
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
11
# Changelog
22

3-
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4-
5-
## [16.1.0](https://github.com/manfredsteyer/angular-oauth2-oidc/compare/v10.0.3...v16.1.0) (2023-12-16)
6-
7-
83
### Features
94

10-
* introduce DateTimeProvider ([0c0a4a7](https://github.com/manfredsteyer/angular-oauth2-oidc/commit/0c0a4a7a2574c8c134fa839f7ccdee06273a0676))
11-
* **logout:** postLogoutRedirectUri should not default to redirectUri ([ff7d1d9](https://github.com/manfredsteyer/angular-oauth2-oidc/commit/ff7d1d915aa19f87bcb1c2d18ac3eb280db78d3b))
12-
* provide standalone api ([e38c99c](https://github.com/manfredsteyer/angular-oauth2-oidc/commit/e38c99c5f70f23fad892328e2a6f01f1e813af4c))
13-
* support JWT response on userinfo endpoint ([da16494](https://github.com/manfredsteyer/angular-oauth2-oidc/commit/da1649499376863b0ebf884748176f3b38d91899))
14-
* update for angular 13 ([d95d7da](https://github.com/manfredsteyer/angular-oauth2-oidc/commit/d95d7da788e2c1390346c66de62dc31f10d2b852))
155
* update project to Angular 16 ([b999024](https://github.com/manfredsteyer/angular-oauth2-oidc/commit/b999024b1bb7fdb40f07810a75add60f47fe5f08))
166

177

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ For using this library with **Azure Active Directory** (**Azure AD**), we recomm
2828

2929
Also, the Okta community created some guidelines on how to use this lib with Okta. See the links at the end of this page for more information.
3030

31-
**Angular 15 & 16**: Use 15.x versions of this library (**should also work with older Angular versions!**).
31+
**Angular 16**: Use 16.x versions of this library (**should also work with older Angular versions!**).
32+
33+
**Angular 15**: Use 15.x versions of this library (**should also work with older Angular versions!**).
3234

3335
**Angular 14**: Use 14.x versions of this library (**should also work with older Angular versions!**).
3436

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

+19-8
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99

1010
<link rel="icon" type="image/x-icon" href="../images/favicon.ico">
1111
<link rel="stylesheet" href="../styles/style.css">
12-
<link rel="stylesheet" href="../styles/dark.css" media="(prefers-color-scheme: dark)">
12+
<link rel="stylesheet" href="../styles/dark.css">
1313
</head>
1414
<body>
1515

16-
<div class="navbar navbar-default navbar-fixed-top visible-xs">
16+
<div class="navbar navbar-default navbar-fixed-top d-block d-sm-none">
1717
<a href="../" class="navbar-brand">angular-oauth2-oidc</a>
1818
<button type="button" class="btn btn-default btn-menu ion-ios-menu" id="btn-menu"></button>
1919
</div>
@@ -44,12 +44,14 @@
4444

4545

4646

47-
4847

4948

5049

5150

52-
<h1 id="configure-adapt-id_token-validation">Configure/ Adapt id_token Validation</h1>
51+
52+
53+
54+
<h1>Configure/ Adapt id_token Validation</h1>
5355
<p>You can hook in an implementation of the interface <code>TokenValidator</code> to validate the signature of the received id_token and its at_hash property. This packages provides two implementations:</p>
5456
<ul>
5557
<li>JwksValidationHandler</li>
@@ -61,7 +63,7 @@ <h1 id="configure-adapt-id_token-validation">Configure/ Adapt id_token Validatio
6163
[...]
6264

6365
this.oauthService.tokenValidationHandler = new JwksValidationHandler();</code></pre></div><p>In cases where no ValidationHandler is defined, you receive a warning on the console. This means that the library wants you to explicitly decide on this.</p>
64-
<h2 id="dependency-injection">Dependency Injection</h2>
66+
<h2>Dependency Injection</h2>
6567
<p>You can also setup a ValidationHandler by leveraging dependency injection:</p>
6668
<div><pre class="line-numbers"><code class="language-TypeScript">[...]
6769
providers: [
@@ -70,7 +72,7 @@ <h2 id="dependency-injection">Dependency Injection</h2>
7072
[...]</code></pre></div>
7173
</div><div class="search-results">
7274
<div class="has-results">
73-
<h1 class="search-results-title"><span class='search-results-count'></span> result-matching "<span class='search-query'></span>"</h1>
75+
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
7476
<ul class="search-results-list"></ul>
7577
</div>
7678
<div class="no-results">
@@ -82,6 +84,15 @@ <h1 class="search-results-title">No results matching "<span class='search-query'
8284
</div>
8385
</div>
8486

87+
<label class="dark-mode-switch">
88+
<input type="checkbox">
89+
<span class="slider">
90+
<svg class="slider-icon" viewBox="0 0 24 24" fill="none" height="20" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" width="20" xmlns="http://www.w3.org/2000/svg">
91+
<path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"></path>
92+
</svg>
93+
</span>
94+
</label>
95+
8596
<script>
8697
var COMPODOC_CURRENT_PAGE_DEPTH = 1;
8798
var COMPODOC_CURRENT_PAGE_CONTEXT = 'additional-page';
@@ -91,8 +102,8 @@ <h1 class="search-results-title">No results matching "<span class='search-query'
91102

92103
<script src="../js/libs/custom-elements.min.js"></script>
93104
<script src="../js/libs/lit-html.js"></script>
94-
95-
<script type="module" src="../js/menu-wc.js" defer></script>
105+
106+
<script src="../js/menu-wc.js" defer></script>
96107
<script nomodule src="../js/menu-wc_es5.js" defer></script>
97108

98109
<script src="../js/libs/bootstrap-native.js"></script>

docs/additional-documentation/authorization-servers.html

+18-7
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99

1010
<link rel="icon" type="image/x-icon" href="../images/favicon.ico">
1111
<link rel="stylesheet" href="../styles/style.css">
12-
<link rel="stylesheet" href="../styles/dark.css" media="(prefers-color-scheme: dark)">
12+
<link rel="stylesheet" href="../styles/dark.css">
1313
</head>
1414
<body>
1515

16-
<div class="navbar navbar-default navbar-fixed-top visible-xs">
16+
<div class="navbar navbar-default navbar-fixed-top d-block d-sm-none">
1717
<a href="../" class="navbar-brand">angular-oauth2-oidc</a>
1818
<button type="button" class="btn btn-default btn-menu ion-ios-menu" id="btn-menu"></button>
1919
</div>
@@ -44,18 +44,20 @@
4444

4545

4646

47-
4847

4948

5049

5150

52-
<h1 id="support-for-auth-servers">Support for Auth Servers</h1>
51+
52+
53+
54+
<h1>Support for Auth Servers</h1>
5355
<p>As this lib follows the OAuth2 and OpenId Connect specs, it should work with all compliant authorizations servers.</p>
5456
<p>However, experience shows that some authorizations servers come with some special behavior or settings. Hence, we must respect this when using this lib.</p>
5557

5658
</div><div class="search-results">
5759
<div class="has-results">
58-
<h1 class="search-results-title"><span class='search-results-count'></span> result-matching "<span class='search-query'></span>"</h1>
60+
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
5961
<ul class="search-results-list"></ul>
6062
</div>
6163
<div class="no-results">
@@ -67,6 +69,15 @@ <h1 class="search-results-title">No results matching "<span class='search-query'
6769
</div>
6870
</div>
6971

72+
<label class="dark-mode-switch">
73+
<input type="checkbox">
74+
<span class="slider">
75+
<svg class="slider-icon" viewBox="0 0 24 24" fill="none" height="20" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" width="20" xmlns="http://www.w3.org/2000/svg">
76+
<path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"></path>
77+
</svg>
78+
</span>
79+
</label>
80+
7081
<script>
7182
var COMPODOC_CURRENT_PAGE_DEPTH = 1;
7283
var COMPODOC_CURRENT_PAGE_CONTEXT = 'additional-page';
@@ -76,8 +87,8 @@ <h1 class="search-results-title">No results matching "<span class='search-query'
7687

7788
<script src="../js/libs/custom-elements.min.js"></script>
7889
<script src="../js/libs/lit-html.js"></script>
79-
80-
<script type="module" src="../js/menu-wc.js" defer></script>
90+
91+
<script src="../js/menu-wc.js" defer></script>
8192
<script nomodule src="../js/menu-wc_es5.js" defer></script>
8293

8394
<script src="../js/libs/bootstrap-native.js"></script>

docs/additional-documentation/authorization-servers/auth0.html

+22-11
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99

1010
<link rel="icon" type="image/x-icon" href="../../images/favicon.ico">
1111
<link rel="stylesheet" href="../../styles/style.css">
12-
<link rel="stylesheet" href="../../styles/dark.css" media="(prefers-color-scheme: dark)">
12+
<link rel="stylesheet" href="../../styles/dark.css">
1313
</head>
1414
<body>
1515

16-
<div class="navbar navbar-default navbar-fixed-top visible-xs">
16+
<div class="navbar navbar-default navbar-fixed-top d-block d-sm-none">
1717
<a href="../../" class="navbar-brand">angular-oauth2-oidc</a>
1818
<button type="button" class="btn btn-default btn-menu ion-ios-menu" id="btn-menu"></button>
1919
</div>
@@ -44,19 +44,21 @@
4444

4545

4646

47-
4847

4948

5049

5150

52-
<h1 id="using-auth0">Using Auth0</h1>
51+
52+
53+
54+
<h1>Using Auth0</h1>
5355
<p>To use this lib with Auth0, open your Auth0 account and configure:</p>
5456
<ul>
5557
<li>An app </li>
5658
<li>An API</li>
5759
</ul>
5860
<p>Configure the app to use <code>refresh token rotation</code> and the grant types <code>authorization code</code> and <code>refresh token</code>. For grant types, see the advanced settings at the end of the settings page.</p>
59-
<h2 id="configuration">Configuration</h2>
61+
<h2>Configuration</h2>
6062
<p>Provide a configuration like this:</p>
6163
<div><pre class="line-numbers"><code class="language-typescript">import { AuthConfig } from &#39;angular-oauth2-oidc&#39;;
6264

@@ -78,20 +80,20 @@ <h2 id="configuration">Configuration</h2>
7880
// Your API&#39;s name
7981
audience: &#39;http://www.angular.at/api&#39;
8082
},
81-
};</code></pre></div><h2 id="getting-using-and-refreshing-a-token">Getting, Using, and Refreshing a Token</h2>
83+
};</code></pre></div><h2>Getting, Using, and Refreshing a Token</h2>
8284
<p>This should work as shown in the other examples in this documentation and in the readme file.</p>
83-
<h2 id="logging-out">Logging out</h2>
85+
<h2>Logging out</h2>
8486
<p>Auth0&#39;s logout endpoint expects the parameters <code>client_id</code> and <code>returnTo</code>:</p>
8587
<div><pre class="line-numbers"><code class="language-typescript">this.oauthService.revokeTokenAndLogout({
8688
client_id: this.oauthService.clientId,
8789
returnTo: this.oauthService.redirectUri
8890
}, true);</code></pre></div><p>The optional 2nd parameter set to <code>true</code> ignores CORS issues with the logout endpoint.</p>
89-
<h2 id="example">Example</h2>
91+
<h2>Example</h2>
9092
<p>Please find a <a href="https://github.com/manfredsteyer/auth0-demo">demo</a> for using Auth0 with angular-oauth2-oidc <a href="https://github.com/manfredsteyer/auth0-demo">here</a>.</p>
9193

9294
</div><div class="search-results">
9395
<div class="has-results">
94-
<h1 class="search-results-title"><span class='search-results-count'></span> result-matching "<span class='search-query'></span>"</h1>
96+
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
9597
<ul class="search-results-list"></ul>
9698
</div>
9799
<div class="no-results">
@@ -103,6 +105,15 @@ <h1 class="search-results-title">No results matching "<span class='search-query'
103105
</div>
104106
</div>
105107

108+
<label class="dark-mode-switch">
109+
<input type="checkbox">
110+
<span class="slider">
111+
<svg class="slider-icon" viewBox="0 0 24 24" fill="none" height="20" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" width="20" xmlns="http://www.w3.org/2000/svg">
112+
<path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"></path>
113+
</svg>
114+
</span>
115+
</label>
116+
106117
<script>
107118
var COMPODOC_CURRENT_PAGE_DEPTH = 2;
108119
var COMPODOC_CURRENT_PAGE_CONTEXT = 'additional-page';
@@ -112,8 +123,8 @@ <h1 class="search-results-title">No results matching "<span class='search-query'
112123

113124
<script src="../../js/libs/custom-elements.min.js"></script>
114125
<script src="../../js/libs/lit-html.js"></script>
115-
116-
<script type="module" src="../../js/menu-wc.js" defer></script>
126+
127+
<script src="../../js/menu-wc.js" defer></script>
117128
<script nomodule src="../../js/menu-wc_es5.js" defer></script>
118129

119130
<script src="../../js/libs/bootstrap-native.js"></script>

docs/additional-documentation/authorization-servers/azure-ad-(active-directory).html

+18-7
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99

1010
<link rel="icon" type="image/x-icon" href="../../images/favicon.ico">
1111
<link rel="stylesheet" href="../../styles/style.css">
12-
<link rel="stylesheet" href="../../styles/dark.css" media="(prefers-color-scheme: dark)">
12+
<link rel="stylesheet" href="../../styles/dark.css">
1313
</head>
1414
<body>
1515

16-
<div class="navbar navbar-default navbar-fixed-top visible-xs">
16+
<div class="navbar navbar-default navbar-fixed-top d-block d-sm-none">
1717
<a href="../../" class="navbar-brand">angular-oauth2-oidc</a>
1818
<button type="button" class="btn btn-default btn-menu ion-ios-menu" id="btn-menu"></button>
1919
</div>
@@ -44,17 +44,19 @@
4444

4545

4646

47-
4847

4948

5049

5150

52-
<h1 id="using-with-azure-ad">Using with Azure AD</h1>
51+
52+
53+
54+
<h1>Using with Azure AD</h1>
5355
<p>For using this library with <strong>Azure Active Directory</strong> (<strong>Azure AD</strong>), we recommend an additional look to this <a href="https://dev.to/yuriburger/azure-active-directory-b2c-with-pkce-for-your-angular-app-1dcg">blog post</a> and the example linked at the end of this blog post.</p>
5456

5557
</div><div class="search-results">
5658
<div class="has-results">
57-
<h1 class="search-results-title"><span class='search-results-count'></span> result-matching "<span class='search-query'></span>"</h1>
59+
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
5860
<ul class="search-results-list"></ul>
5961
</div>
6062
<div class="no-results">
@@ -66,6 +68,15 @@ <h1 class="search-results-title">No results matching "<span class='search-query'
6668
</div>
6769
</div>
6870

71+
<label class="dark-mode-switch">
72+
<input type="checkbox">
73+
<span class="slider">
74+
<svg class="slider-icon" viewBox="0 0 24 24" fill="none" height="20" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" width="20" xmlns="http://www.w3.org/2000/svg">
75+
<path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"></path>
76+
</svg>
77+
</span>
78+
</label>
79+
6980
<script>
7081
var COMPODOC_CURRENT_PAGE_DEPTH = 2;
7182
var COMPODOC_CURRENT_PAGE_CONTEXT = 'additional-page';
@@ -75,8 +86,8 @@ <h1 class="search-results-title">No results matching "<span class='search-query'
7586

7687
<script src="../../js/libs/custom-elements.min.js"></script>
7788
<script src="../../js/libs/lit-html.js"></script>
78-
79-
<script type="module" src="../../js/menu-wc.js" defer></script>
89+
90+
<script src="../../js/menu-wc.js" defer></script>
8091
<script nomodule src="../../js/menu-wc_es5.js" defer></script>
8192

8293
<script src="../../js/libs/bootstrap-native.js"></script>

0 commit comments

Comments
 (0)