mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Merge pull request #25479 from overleaf/msm-passport-saml-5
[web] Update `passport-saml` to `v5.0.1` GitOrigin-RevId: 9e154d3f7ef78d37a151e863ce86bfc2f8d85956
This commit is contained in:
@@ -51,7 +51,7 @@ async function checkCert(ukamfDB, providerId) {
|
||||
if (entity) {
|
||||
const samlConfig = entity.getSamlConfig()
|
||||
// check if certificates match
|
||||
if (samlConfig.cert === body.sso_cert) {
|
||||
if (samlConfig.idpCert === body.sso_cert) {
|
||||
console.log(' * UKAMF certificate matches configuration')
|
||||
} else {
|
||||
console.log(' ! UKAMF certificate DOES NOT match configuration')
|
||||
|
||||
@@ -29,7 +29,7 @@ async function main() {
|
||||
|
||||
const certificate = Certificate.fromPEM(
|
||||
Buffer.from(
|
||||
`-----BEGIN CERTIFICATE-----\n${samlConfig.cert}\n-----END CERTIFICATE-----`,
|
||||
`-----BEGIN CERTIFICATE-----\n${samlConfig.idpCert}\n-----END CERTIFICATE-----`,
|
||||
'utf8'
|
||||
)
|
||||
)
|
||||
@@ -53,7 +53,7 @@ async function main() {
|
||||
|
||||
console.log(`SSO Entity ID: ${samlConfig.entityId}\n`)
|
||||
console.log(`SSO Entry Point: ${samlConfig.entryPoint}\n`)
|
||||
console.log(`SSO Certificate: ${samlConfig.cert}\n`)
|
||||
console.log(`SSO Certificate: ${samlConfig.idpCert}\n`)
|
||||
if (samlConfig.hiddenIdP) {
|
||||
console.log('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!')
|
||||
console.log('!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!')
|
||||
|
||||
Reference in New Issue
Block a user