From ea63f4d649bc76edcefcfce34090390b24eb3bea Mon Sep 17 00:00:00 2001 From: kdhttps Date: Thu, 29 Aug 2024 14:51:10 +0530 Subject: [PATCH] fix(passport): update provider --- server/providers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/providers.js b/server/providers.js index 923a293f..8f8975d1 100644 --- a/server/providers.js +++ b/server/providers.js @@ -90,11 +90,11 @@ async function setupStrategy (provider) { // "an IDP would never do both IDP initiated and SP initiated..." if (global.iiconfig.authorizationParams.find( authorizationParam => authorizationParam.provider === id)) { - providerOptions.validateInResponseTo = false + providerOptions.validateInResponseTo = 'never' } // Instantiate custom cache provider if required - if (providerOptions.validateInResponseTo) { + if (providerOptions.validateInResponseTo === 'always') { const f = R.anyPass([R.isNil, R.isEmpty]) const exp = providerOptions.requestIdExpirationPeriodMs / 1000