-
Notifications
You must be signed in to change notification settings - Fork 170
handle multiple signatures in the SAML response #47
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
Conversation
|
We're seeing an issue with an IdP sending multiple signatures, and this patch seems to do the trick for our use case. |
|
Is this something that is likely to be merged, or might this library cover multiple sigs in a different way? |
|
This is not something that was handled by #58, right? Is this something that might be merged into a future release? |
|
@cozmo Is this something I could help get into a future release? It's still definitely affecting us with some IdPs, and I'd love to get it into a saml2-js release. |
|
Hey @brettkiefer - multiple signatures is tricky to support securely/without edge cases. Take for example the bug that #48 uncovered. Do you have an example of the response you're trying to support? Also it's possible that if/when #74 is merged it could fix your use case, depending on the details. |
|
@cozmo Thanks! @mgduk tells me that #74 won't do the trick for us, because we're trying to deal with a response where both the Response and the Assertion are signed. An example of that would be the "SAML Response with Signed Message & Assertion" from the OneLogin docs at https://developers.onelogin.com/saml/examples/response (included below). |
|
Hi @cozmo When handling a response that has a signed Response and Assertion, there are two bugs at play.
(2) is the bug that this PR (#47) is addressing, however I think it is safer and cleaner to take a slightly different approach to resolve this: more info, tests & fix are on #82 Hopefully there's enough info in #81 and #82 to clarify the problems and my solutions to them. Let me know if you need anything more! Thanks. |
|
Sounds good |
It's valid for a SAML response to contain multiple signatures (I ran into this problem with a major SAML SSO provider)
iojsversions of Node.