Socket
Socket
Sign inDemoInstall

openid-client

Package Overview
Dependencies
Maintainers
1
Versions
181
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openid-client - npm Package Compare versions

Comparing version 4.2.1 to 4.2.2

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

## [4.2.2](https://github.com/panva/node-openid-client/compare/v4.2.1...v4.2.2) (2020-11-30)
### Bug Fixes
* push pkce <> response type resolution to the authenticate function ([1970af4](https://github.com/panva/node-openid-client/commit/1970af41dc0cd62d44efb1f0a48bdc2a70bcd608)), closes [#312](https://github.com/panva/node-openid-client/issues/312)
## [4.2.1](https://github.com/panva/node-openid-client/compare/v4.2.0...v4.2.1) (2020-10-27)

@@ -7,0 +14,0 @@

6

lib/passport_strategy.js

@@ -32,3 +32,3 @@ /* eslint-disable no-underscore-dangle */

sessionKey,
usePKCE,
usePKCE = true,
extras = {},

@@ -61,3 +61,3 @@ } = {}, verify) {

if (this._usePKCE === true || (typeof this._usePKCE === 'undefined' && this._params.response_type.includes('code'))) {
if (this._usePKCE === true) {
const supportedMethods = Array.isArray(this._issuer.code_challenge_methods_supported)

@@ -106,3 +106,3 @@ ? this._issuer.code_challenge_methods_supported : false;

if (this._usePKCE) {
if (this._usePKCE && params.response_type.includes('code')) {
const verifier = random();

@@ -109,0 +109,0 @@ req.session[sessionKey].code_verifier = verifier;

{
"name": "openid-client",
"version": "4.2.1",
"version": "4.2.2",
"description": "OpenID Connect Relying Party (RP, Client) implementation for Node.js runtime, supports passportjs",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc