Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SAML2 artifact binding not working with SSO samples #221

Open
chamathns opened this issue Feb 15, 2020 · 1 comment
Open

SAML2 artifact binding not working with SSO samples #221

chamathns opened this issue Feb 15, 2020 · 1 comment

Comments

@chamathns
Copy link
Contributor

Enabling artifact binding in SAML2 throws the following exception.

**Exception**

javax.servlet.ServletException: Filter execution threw an exception

**Root Cause**

java.lang.NoClassDefFoundError: javax/xml/soap/SOAPException
	org.wso2.carbon.identity.sso.agent.saml.SAML2SSOManager.processArtifactResponse(SAML2SSOManager.java:380)
	org.wso2.carbon.identity.sso.agent.SAML2SSOAgentFilter.doFilter(SAML2SSOAgentFilter.java:107)

**Root Cause**

java.lang.ClassNotFoundException: javax.xml.soap.SOAPException
	org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1358)
	org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1180)
	org.wso2.carbon.identity.sso.agent.saml.SAML2SSOManager.processArtifactResponse(SAML2SSOManager.java:380)
	org.wso2.carbon.identity.sso.agent.SAML2SSOAgentFilter.doFilter(SAML2SSOAgentFilter.java:107)
@ImalshaG
Copy link
Contributor

ImalshaG commented Oct 17, 2023

Our sample app (saml2-web-app-pickup-dispatch) does not support SAML artifact binding with JDK11.

A workaround to test this flow is to run the tomcat in java 8 and comment out the following 2 lines and patch it to the product-IS.
https://github.com/wso2/carbon-identity-framework/blob/bad7a9321fc518188ffbeab22247a1307902f0e5/components/identity-core/org.wso2.carbon.identity.core/src/main/java/org/wso2/carbon/identity/core/util/IdentityUtil.java#L647-L648

Tested in IS 7.0.0-m4-SNAPSHOT pack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants