Merge pull request #10641 from overleaf/jpa-fix-passport-saml-authn-context

[server-pro] fix parsing of authnContext in passport-saml options

GitOrigin-RevId: c02ad92caff5d6ccff1fff70e5ccefb08154e624
This commit is contained in:
Miguel Serrano 2022-12-12 11:58:20 +01:00 committed by Copybot
parent ccd509ff6d
commit 57e5c38c8d

View file

@ -582,7 +582,9 @@ if (process.env.SHARELATEX_SAML_ENTRYPOINT) {
identifierFormat: process.env.SHARELATEX_SAML_IDENTIFIER_FORMAT,
attributeConsumingServiceIndex:
process.env.SHARELATEX_SAML_ATTRIBUTE_CONSUMING_SERVICE_INDEX,
authnContext: process.env.SHARELATEX_SAML_AUTHN_CONTEXT,
authnContext:
process.env.SHARELATEX_SAML_AUTHN_CONTEXT &&
process.env.SHARELATEX_SAML_AUTHN_CONTEXT.split(','),
authnRequestBinding: process.env.SHARELATEX_SAML_AUTHN_REQUEST_BINDING,
validateInResponseTo: process.env.SHARELATEX_SAML_VALIDATE_IN_RESPONSE_TO,
cacheProvider: process.env.SHARELATEX_SAML_CACHE_PROVIDER,