openid-client
Advanced tools
Comparing version 3.15.7 to 3.15.8
@@ -5,2 +5,11 @@ # Change Log | ||
## [3.15.8](https://github.com/panva/node-openid-client/compare/v3.15.7...v3.15.8) (2020-07-17) | ||
### Bug Fixes | ||
* allow AAD appid including discovery URLs to be multi-tenant ([c27caab](https://github.com/panva/node-openid-client/commit/c27caab9b9df92b591c4f0491fd2ec346ff48988)) | ||
## [3.15.7](https://github.com/panva/node-openid-client/compare/v3.15.6...v3.15.7) (2020-07-16) | ||
@@ -7,0 +16,0 @@ |
@@ -5,3 +5,3 @@ const OIDC_DISCOVERY = '/.well-known/openid-configuration'; | ||
const REL = 'http://openid.net/specs/connect/1.0/issuer'; | ||
const AAD_MULTITENANT_DISCOVERY = new Set([ | ||
const AAD_MULTITENANT_DISCOVERY = [ | ||
`https://login.microsoftonline.com/common${OIDC_DISCOVERY}`, | ||
@@ -11,3 +11,3 @@ `https://login.microsoftonline.com/common/v2.0${OIDC_DISCOVERY}`, | ||
`https://login.microsoftonline.com/consumers/v2.0${OIDC_DISCOVERY}`, | ||
]); | ||
]; | ||
@@ -14,0 +14,0 @@ const CLIENT_DEFAULTS = { |
@@ -224,3 +224,3 @@ /* eslint-disable max-classes-per-file */ | ||
...body, | ||
[AAD_MULTITENANT]: AAD_MULTITENANT_DISCOVERY.has(uri), | ||
[AAD_MULTITENANT]: AAD_MULTITENANT_DISCOVERY.find((discoveryURL) => uri.startsWith(discoveryURL)), | ||
}); | ||
@@ -252,3 +252,3 @@ } | ||
...body, | ||
[AAD_MULTITENANT]: AAD_MULTITENANT_DISCOVERY.has(wellKnownUri), | ||
[AAD_MULTITENANT]: AAD_MULTITENANT_DISCOVERY.find((discoveryURL) => wellKnownUri.startsWith(discoveryURL)), | ||
}); | ||
@@ -255,0 +255,0 @@ })); |
{ | ||
"name": "openid-client", | ||
"version": "3.15.7", | ||
"version": "3.15.8", | ||
"description": "OpenID Connect Relying Party (RP, Client) implementation for Node.js runtime, supports passportjs", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
165267