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

Invalid_response Invalid SAML Response. Not match the saml-schema-protocol-2.0.xsd ( SAML Toolkit Java ) #414

Open
TungMaybach opened this issue Jan 19, 2024 · 3 comments

Comments

@TungMaybach
Copy link

Hi team One Login

I testing SAML Java with ADFS Microsoft
I'm imported relaying party trust and claim attribute setup in ADFS
X509 Idp cert in Properties file ( SAML toolkit ) is token signing in ADFS
but when after log in ADFS, Saml Response result as in Picture

OS : MS server 2016
JDK : 18

Hope can help me !!
Untitled

image

@TungMaybach
Copy link
Author

2

@TungMaybach TungMaybach changed the title Invalid_response Invalid SAML Response. Not match the saml-schema-protocol-2.0.xsd Invalid_response Invalid SAML Response. Not match the saml-schema-protocol-2.0.xsd ( SAML Toolkit Java ) Jan 19, 2024
@haavar
Copy link

haavar commented Jan 23, 2024

Can you provide a HAR file from when you are seeing the issue?

@ben-manes
Copy link

I see something similar when upgrading to jdk21 (from 14). It also has the error

org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name 'xop:Include' to a(n) 'element declaration' component.
	at c.s.o.a.x.i.u.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:204)
	at c.s.o.a.x.i.u.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:135)
	... 11 frames excluded
	at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:612)
	at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:644)
	at c.onelogin.saml2.util.SchemaFactory.loadFromUrl(SchemaFactory.java:106)
	at com.onelogin.saml2.util.Util.validateXML(Util.java:305)
	at c.onelogin.saml2.authn.SamlResponse.isValid(SamlResponse.java:220)
	at com.onelogin.saml2.Auth.processResponse(Auth.java:1202)
	at com.onelogin.saml2.Auth.processResponse(Auth.java:1248)
	at c.l.s.e.t.u.auth.OAuthTokenAction.processSamlResponse(OAuthTokenAction.java:241)
	at c.l.s.e.t.u.auth.OAuthTokenAction.samlSignOn(OAuthTokenAction.java:141)
	at j.i.r.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.lang.reflect.Method.invoke(Method.java:580)
	at o.j.r.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:170)
	at o.j.r.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:130)
	at o.j.r.core.ResourceMethodInvoker.internalInvokeOnTarget(ResourceMethodInvoker.java:660)
	at o.j.r.core.ResourceMethodInvoker.invokeOnTargetAfterFilter(ResourceMethodInvoker.java:524)
	at o.j.r.core.ResourceMethodInvoker.lambda$invokeOnTarget$2(ResourceMethodInvoker.java:474)
	at o.j.r.c.i.j.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:364)
	at o.j.r.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:476)
	... 70 frames truncated

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

3 participants