-
Notifications
You must be signed in to change notification settings - Fork 2
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
SAML Response XML is invalid: The SAML XSD requires the Signature element to be just after the Issuer element #2
Comments
You can see the correct schema representation here: It looks like the offending code may be here: |
Thanks for the report @MrChrisRodriguez we will take a look shortly. |
I'll have to dig into this a big further, it seems to be in the correct location so far, I added some additional assertions for the location of the signature element. |
Think I've got it - when configured to sign the assertion, it was in the correct location, but when configured to sign the response or for an un-successful response - the signature was in the incorrect location. I produced XML responses for both scenarios and they both passed validation of the SAML Response schema. |
SAML response XML is invalid: The SAML XSD requires the Signature element to be just after the Issuer element
This is a duplicate of fusionauth-issues #1047. It seemed like it might be more appropriate here.
Description
The SAML response XML being generated by FusionAuth is invalid. The XSD requires that the Signature element appear immediately after the Issuer element. FusionAuth is not fulfilling this requirement, so some SPs aren't even processing the Response because it fails validation (Twilio, for example). Auth0 had this same issue back in 2017, as well.
Affects versions
v1.22.2
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
The Signature element should appear immediately following the issuer element.
Screenshots
Platform
(Please complete the following information)
Additional context
N/A
The text was updated successfully, but these errors were encountered: