Skip to content

Commit

Permalink
fix(passport): update provider
Browse files Browse the repository at this point in the history
  • Loading branch information
kdhttps committed Aug 29, 2024
1 parent 324b67d commit ea63f4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/providers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ea63f4d

Please sign in to comment.