Inspiring
January 31, 2023
Question
SAML SSO fails when Security Sandboxes are enabled.
- January 31, 2023
- 1 reply
- 1203 views
I have an ADFS server acting as the IDP,
CF2021 update 5 using a simple SP setup running on RHEL 8/httpd.
Oracle JDK 11.0.17, SELinux is disabled. Signing and Encryption are disabled on the SP.
SSO was working until I created a security sandbox around the code webroot.
I created a default security sandbox around the web root, I started getting this error message: "Invalid SAML Response. Not match the saml-schema-protocol-2.0.xsd"
I enabled all Tags and Functions, "Other", and opened up the File/Folder permissions to absolutely everything, but it still fails.
If I remove the security sandbox, it starts working again.
coldfusion-out.log shows this:
01/31 10:26:40 [ajp-nio-127.0.0.1-8020-exec-3] WARN Error executing validateXML: schema_reference.4: Failed to read schema document 'bundle://5a95f7f4-292b-4044-9e7d-2bd1e4eb78ed_272.0:1/schemas/saml-schema-protocol-2.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'bundle://5a95f7f4-292b-4044-9e7d-2bd1e4eb78ed_272.0:1/schemas/saml-schema-protocol-2.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) ~[xercesImpl.jar:?]