Skip to content

Commit

Permalink
fix: idpCert must be valid PEM or BASE64
Browse files Browse the repository at this point in the history
  • Loading branch information
kdhttps committed Aug 30, 2024
1 parent 5d6e64d commit 9b8fb0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/providers.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ async function setupStrategy (provider) {
)
}
}

providerOptions.idpCert = providerOptions.idpCert.replace(/\n| /g, '')
const samlStrategy = new Strategy(providerOptions, verify)
passport.use(id, samlStrategy)
spMetadata.generate(provider, samlStrategy)
Expand Down

0 comments on commit 9b8fb0c

Please sign in to comment.