openid-client 5.1.10 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/lib/client.js +12 -10
- package/package.json +3 -11
package/README.md
CHANGED
|
@@ -42,7 +42,7 @@ openid-client.
|
|
|
42
42
|
- self_signed_tls_client_auth
|
|
43
43
|
- [RFC9101 - OAuth 2.0 JWT-Secured Authorization Request (JAR)][feature-jar]
|
|
44
44
|
- [RFC9126 - OAuth 2.0 Pushed Authorization Requests (PAR)][feature-par]
|
|
45
|
-
- [OpenID Connect RP-Initiated Logout 1.0
|
|
45
|
+
- [OpenID Connect RP-Initiated Logout 1.0][feature-rp-logout]
|
|
46
46
|
- [Financial-grade API Security Profile 1.0 - Part 2: Advanced (FAPI)][feature-fapi]
|
|
47
47
|
- [JWT Secured Authorization Response Mode for OAuth 2.0 (JARM) - ID1][feature-jarm]
|
|
48
48
|
- [OAuth 2.0 Demonstration of Proof-of-Possession at the Application Layer (DPoP) - draft 04][feature-dpop]
|
|
@@ -272,7 +272,7 @@ See [Customizing (docs)][documentation-customizing].
|
|
|
272
272
|
[feature-introspection]: https://tools.ietf.org/html/rfc7662
|
|
273
273
|
[feature-mtls]: https://tools.ietf.org/html/rfc8705
|
|
274
274
|
[feature-device-flow]: https://tools.ietf.org/html/rfc8628
|
|
275
|
-
[feature-rp-logout]: https://openid.net/specs/openid-connect-rpinitiated-1_0
|
|
275
|
+
[feature-rp-logout]: https://openid.net/specs/openid-connect-rpinitiated-1_0.html
|
|
276
276
|
[feature-jarm]: https://openid.net/specs/openid-financial-api-jarm-ID1.html
|
|
277
277
|
[feature-fapi]: https://openid.net/specs/openid-financial-api-part-2-1_0.html
|
|
278
278
|
[feature-dpop]: https://tools.ietf.org/html/draft-ietf-oauth-dpop-04
|
package/lib/client.js
CHANGED
|
@@ -288,24 +288,26 @@ class BaseClient {
|
|
|
288
288
|
|
|
289
289
|
const { post_logout_redirect_uri = length === 1 ? postLogout : undefined } = params;
|
|
290
290
|
|
|
291
|
-
let
|
|
292
|
-
|
|
293
|
-
|
|
291
|
+
let id_token_hint;
|
|
292
|
+
({ id_token_hint, ...params } = params);
|
|
293
|
+
if (id_token_hint instanceof TokenSet) {
|
|
294
|
+
if (!id_token_hint.id_token) {
|
|
294
295
|
throw new TypeError('id_token not present in TokenSet');
|
|
295
296
|
}
|
|
296
|
-
|
|
297
|
+
id_token_hint = id_token_hint.id_token;
|
|
297
298
|
}
|
|
298
299
|
|
|
299
300
|
const target = url.parse(this.issuer.end_session_endpoint, true);
|
|
300
301
|
target.search = null;
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
302
|
+
defaults(
|
|
303
|
+
target.query,
|
|
304
|
+
params,
|
|
305
|
+
{
|
|
305
306
|
post_logout_redirect_uri,
|
|
306
|
-
|
|
307
|
+
client_id: this.client_id,
|
|
307
308
|
},
|
|
308
|
-
|
|
309
|
+
{ id_token_hint },
|
|
310
|
+
);
|
|
309
311
|
|
|
310
312
|
Object.entries(target.query).forEach(([key, value]) => {
|
|
311
313
|
if (value === null || value === undefined) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openid-client",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"description": "OpenID Connect Relying Party (RP, Client) implementation for Node.js runtime, supports passportjs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"auth",
|
|
@@ -41,18 +41,11 @@
|
|
|
41
41
|
"types/index.d.ts"
|
|
42
42
|
],
|
|
43
43
|
"scripts": {
|
|
44
|
-
"
|
|
45
|
-
"prettier": "npx prettier --loglevel silent --write ./lib ./test ./certification ./types",
|
|
44
|
+
"format": "npx prettier --loglevel silent --write ./lib ./test ./certification ./types",
|
|
46
45
|
"test": "mocha test/**/*.test.js"
|
|
47
46
|
},
|
|
48
|
-
"nyc": {
|
|
49
|
-
"reporter": [
|
|
50
|
-
"lcov",
|
|
51
|
-
"text-summary"
|
|
52
|
-
]
|
|
53
|
-
},
|
|
54
47
|
"dependencies": {
|
|
55
|
-
"jose": "^4.
|
|
48
|
+
"jose": "^4.10.0",
|
|
56
49
|
"lru-cache": "^6.0.0",
|
|
57
50
|
"object-hash": "^2.0.1",
|
|
58
51
|
"oidc-token-hash": "^5.0.1"
|
|
@@ -65,7 +58,6 @@
|
|
|
65
58
|
"jose2": "npm:jose@^2.0.5",
|
|
66
59
|
"mocha": "^8.2.0",
|
|
67
60
|
"nock": "^13.0.2",
|
|
68
|
-
"nyc": "^15.1.0",
|
|
69
61
|
"prettier": "^2.4.1",
|
|
70
62
|
"readable-mock-req": "^0.2.2",
|
|
71
63
|
"sinon": "^9.2.0",
|