openid-client 5.3.0 → 5.3.2
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 +11 -11
- package/lib/passport_strategy.js +5 -0
- package/package.json +1 -1
- package/types/index.d.ts +1 -1
package/README.md
CHANGED
|
@@ -48,7 +48,7 @@ openid-client.
|
|
|
48
48
|
- [OAuth 2.0 Demonstration of Proof-of-Possession at the Application Layer (DPoP) - draft 04][feature-dpop]
|
|
49
49
|
- [OAuth 2.0 Authorization Server Issuer Identification][feature-iss]
|
|
50
50
|
|
|
51
|
-
Updates to draft specifications
|
|
51
|
+
Updates to draft specifications are released as MINOR library versions,
|
|
52
52
|
if you utilize these specification implementations consider using the tilde `~` operator in your
|
|
53
53
|
package.json since breaking changes may be introduced as part of these version updates.
|
|
54
54
|
|
|
@@ -284,14 +284,14 @@ See [Customizing (docs)][documentation-customizing].
|
|
|
284
284
|
[npm-url]: https://www.npmjs.com/package/openid-client
|
|
285
285
|
[sponsor-auth0]: https://a0.to/try-auth0
|
|
286
286
|
[support-sponsor]: https://github.com/sponsors/panva
|
|
287
|
-
[documentation]: https://github.com/panva/node-openid-client/blob/
|
|
288
|
-
[documentation-issuer]: https://github.com/panva/node-openid-client/blob/
|
|
289
|
-
[documentation-client]: https://github.com/panva/node-openid-client/blob/
|
|
290
|
-
[documentation-customizing]: https://github.com/panva/node-openid-client/blob/
|
|
291
|
-
[documentation-tokenset]: https://github.com/panva/node-openid-client/blob/
|
|
292
|
-
[documentation-strategy]: https://github.com/panva/node-openid-client/blob/
|
|
293
|
-
[documentation-errors]: https://github.com/panva/node-openid-client/blob/
|
|
294
|
-
[documentation-generators]: https://github.com/panva/node-openid-client/blob/
|
|
295
|
-
[documentation-methods]: https://github.com/panva/node-openid-client/blob/
|
|
296
|
-
[documentation-webfinger]: https://github.com/panva/node-openid-client/blob/
|
|
287
|
+
[documentation]: https://github.com/panva/node-openid-client/blob/main/docs/README.md
|
|
288
|
+
[documentation-issuer]: https://github.com/panva/node-openid-client/blob/main/docs/README.md#issuer
|
|
289
|
+
[documentation-client]: https://github.com/panva/node-openid-client/blob/main/docs/README.md#client
|
|
290
|
+
[documentation-customizing]: https://github.com/panva/node-openid-client/blob/main/docs/README.md#customizing
|
|
291
|
+
[documentation-tokenset]: https://github.com/panva/node-openid-client/blob/main/docs/README.md#tokenset
|
|
292
|
+
[documentation-strategy]: https://github.com/panva/node-openid-client/blob/main/docs/README.md#strategy
|
|
293
|
+
[documentation-errors]: https://github.com/panva/node-openid-client/blob/main/docs/README.md#errors
|
|
294
|
+
[documentation-generators]: https://github.com/panva/node-openid-client/blob/main/docs/README.md#generators
|
|
295
|
+
[documentation-methods]: https://github.com/panva/node-openid-client/blob/main/docs/README.md#client-authentication-methods
|
|
296
|
+
[documentation-webfinger]: https://github.com/panva/node-openid-client/blob/main/docs/README.md#issuerwebfingerinput
|
|
297
297
|
[express-openid-connect]: https://www.npmjs.com/package/express-openid-connect
|
package/lib/passport_strategy.js
CHANGED
|
@@ -41,6 +41,11 @@ function OpenIDConnectStrategy(
|
|
|
41
41
|
this._usePKCE = usePKCE;
|
|
42
42
|
this._key = sessionKey || `oidc:${url.parse(this._issuer.issuer).hostname}`;
|
|
43
43
|
this._params = cloneDeep(params);
|
|
44
|
+
|
|
45
|
+
// state and nonce are handled in authenticate()
|
|
46
|
+
delete this._params.state;
|
|
47
|
+
delete this._params.nonce;
|
|
48
|
+
|
|
44
49
|
this._extras = cloneDeep(extras);
|
|
45
50
|
|
|
46
51
|
if (!this._params.response_type) this._params.response_type = resolveResponseType.call(client);
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -351,7 +351,7 @@ declare class BaseClient {
|
|
|
351
351
|
tokenType?: string;
|
|
352
352
|
DPoP?: DPoPInput;
|
|
353
353
|
},
|
|
354
|
-
): { body?: Buffer } & http.IncomingMessage
|
|
354
|
+
): Promise<{ body?: Buffer } & http.IncomingMessage>;
|
|
355
355
|
grant(body: GrantBody, extras?: GrantExtras): Promise<TokenSet>;
|
|
356
356
|
introspect(
|
|
357
357
|
token: string,
|