express-openid-connect
Advanced tools
Comparing version 2.12.0 to 2.12.1
@@ -108,6 +108,7 @@ const { Issuer, custom } = require('openid-client'); | ||
if (config.idpLogout && !issuer.end_session_endpoint) { | ||
if (config.idpLogout) { | ||
if ( | ||
config.auth0Logout || | ||
url.parse(issuer.issuer).hostname.match('\\.auth0\\.com$') | ||
(url.parse(issuer.issuer).hostname.match('\\.auth0\\.com$') && | ||
config.auth0Logout !== false) | ||
) { | ||
@@ -134,3 +135,3 @@ Object.defineProperty(client, 'endSessionUrl', { | ||
}); | ||
} else { | ||
} else if (!issuer.end_session_endpoint) { | ||
debug('the issuer does not support RP-Initiated Logout'); | ||
@@ -137,0 +138,0 @@ } |
@@ -96,3 +96,3 @@ const Joi = require('joi'); | ||
.unknown(false), | ||
auth0Logout: Joi.boolean().optional().default(false), | ||
auth0Logout: Joi.boolean().optional(), | ||
tokenEndpointParams: Joi.object().optional(), | ||
@@ -99,0 +99,0 @@ authorizationParams: Joi.object({ |
{ | ||
"name": "express-openid-connect", | ||
"version": "2.12.0", | ||
"version": "2.12.1", | ||
"description": "Express middleware to protect web applications using OpenID Connect.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/auth0/express-openid-connect", |
91748
2551