Hello,
I'm developing a java jar that validates SAMLResponse "signature" and "decryption". I used "onelogin lib".
When running, I got this error message
{
"fault": {
"faultstring": "Failed to execute JavaCallout. Could not initialize class com.onelogin.saml2.util.Util",
"detail": {
"errorcode": "steps.javacallout.ExecutionError"
}
}
}
On my local environment, my code is working.
For the build, i used to ways :
==> i got the same error message
See this response to a different question on Friday.
It is likely that Apigee is disallowing the onelogin JAR because of permissions errors. You should be able to check that if you surround the logic in your execute() method with a try...catch, and then emit context variables documenting the exception.
There are 2 possible workarounds:
Another question - Have you tried using the ValidateSAMLAssertion policy that is builtin to Apigee? If so, why is that policy not suitable for your purposes?
yahyaoui, any response?
Hello,
thanks for your reply !
the ValidateSAMLAssertion policy covers only one use case (A signed SAML Response with a signed Assertion).
On my case, i have a signed SAML Response with an encrypted Assertion. I chose the second option (re-engineer the Java logic).
I’ll let you know when I finish the redesign of the new jar.