I am using CF 2023 to create a POC SAML SSO to get...
# cfml-general
i
I am using CF 2023 to create a POC SAML SSO to get to an SP. I am using xmlsec-2.3.5.jar and have jdk-17.0.13. I am getting this error when i do this. Any help is appreciated.
Copy code
digestMethod = signatureFactory.newDigestMethod("<http://www.w3.org/2001/04/xmlenc##sha256>", JavaCast("null", "java.lang.Object"));
            writeOutput("Created DigestMethod (SHA-256)<br>");
            // Create Transforms
            transforms = createObject("java", "java.util.ArrayList").init();
			writeOutput("Initialized transforms<br>");
           // Enveloped Signature Transform
            transforms.add(signatureFactory.newTransform("<http://www.w3.org/2000/09/xmldsig##enveloped-signature>", JavaCast("null", "java.lang.Object")));
            writeOutput("Added Enveloped Signature Transform<br>");
I am getting the error on: transforms.add(signatureFactory.newTransform("http://www.w3.org/2000/09/xmldsig##enveloped-signature", JavaCast("null", "java.lang.Object"))); Error: The newTransform method was not found. Type: Object Detail: Either there are no methods with the specified method name and argument types or the newTransform method is overloaded with argument types that ColdFusion cannot decipher reliably. ColdFusion found 2 methods that match the provided arguments. If this is a Java object and you verified that the method exists, use the javacast function to reduce ambiguity. Java stack trace:
m
CF 2023 has built-in support for SAML. Right? Have you tried that? Full discloser - I have not tried it and am not running CF 2023. But for a simple POC I would start with that first. Integrate SAML and LDAP support with ColdFusion Administrator
Notice that page also lists SAML APIs that are exposed for you to use as well. Towards the bottom of that page.