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 1.6.1 to 1.6.2

5

CHANGELOG.md

@@ -21,2 +21,7 @@ # openid-client CHANGELOG

## Version 1.6.0
### Version 1.6.2
- [DIFF](https://github.com/panva/node-openid-client/compare/v1.6.1...v1.6.2)
- fixed verify callback skipping userinfo when userinfo_endpoint is not configured (#19)
- removed mandatory checks from passport strategy, allowing i.e. implicit only OPs (#19)
### Version 1.6.1

@@ -23,0 +28,0 @@ - [DIFF](https://github.com/panva/node-openid-client/compare/v1.6.0...v1.6.1)

1

lib/client.js

@@ -172,2 +172,3 @@ 'use strict';

authorizationUrl(params) {
assert(this.issuer.authorization_endpoint, 'authorization_endpoint must be configured');
return url.format(_.defaults({

@@ -174,0 +175,0 @@ search: null,

@@ -85,2 +85,4 @@ 'use strict';

keystore(reload) {
if (!this.jwks_uri) return Promise.reject(new Error('jwks_uri must be configured'));
const keystore = instance(this).keystore;

@@ -87,0 +89,0 @@ const lookupCache = instance(this).cache;

7

lib/passport_strategy.js

@@ -12,4 +12,2 @@ 'use strict';

const MANDATORY = ['authorization_endpoint', 'jwks_uri', 'token_endpoint', 'userinfo_endpoint'];
function verified(err, user, info) {

@@ -42,5 +40,2 @@ const add = info || {};

assert(client.issuer && client.issuer.issuer, 'client must have an issuer with an identifier');
MANDATORY.forEach((prop) => {
assert(client.issuer[prop], `client's issuer must have ${prop} configured`);
});

@@ -104,3 +99,3 @@ this._client = client;

const loadUserinfo = this._verify.length > 2;
const loadUserinfo = this._verify.length > 2 && client.issuer.userinfo_endpoint;

@@ -107,0 +102,0 @@ if (loadUserinfo) {

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

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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