openid-client
Advanced tools
Comparing version 1.6.1 to 1.6.2
@@ -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) |
@@ -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; |
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
69683
1290