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

Signature placed outside of the Assertion element in response XML #198

Closed
joelfmrodrigues opened this issue May 13, 2024 · 1 comment
Closed

Comments

@joelfmrodrigues
Copy link

Hi,

I think this is just a question and not an issue, but here it goes.
I am using this library with a Saml2PostBinding to generate a SAML 2 response for SSO into a third-party service provider and I am having an issue that is likely due to a misconfiguration on my side, but I can't figure out what I may be doing wrong.
The service provider tested the response generated by my code and the SSO fails because the Signature is placed outside of the Assertion element in the XML, and they expect it to be inside.

Is there something I need to configure on the Saml2Configuration or the Saml2PostBinding to make the Signature to be included inside the Assertion?

My code is similar to this sample:
https://github.com/ITfoxtec/ITfoxtec.Identity.Saml2/blob/main/test/TestWebApp/Controllers/IdPInitiatedController.cs

Many thanks!

@joelfmrodrigues
Copy link
Author

Closing this as I found the property AuthnResponseSignType in the Saml2Configuration object that does just that.
PS: this library is awesome!

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

1 participant