-
-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Signature on Response and on Assertion
- Loading branch information
Showing
1 changed file
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5d2e297
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be based on the ds:Reference URI of the signature as opposed to the location of the signature?
5d2e297
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When validating SAML signature on a Response, the elements signed could be the whole Response, the Assertion of both.
When both (response and assertion) are signed, is enought if we validate the sign on the response.
This code worked for me, I'm putting as parameter of the xmlsec command the ID of the Message of or the Assertion to be verified.
5d2e297
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible that the URI of the ds:Signature points to something other than the Assertion or Response and validates fine with xmlsec1? This is regarding XSW
5d2e297
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the code, the xpath expresion search over all the ds:Signature, by default the xmlsec will validate the ID Assertion, but if a Sign is found at the Response level, then xmlsec will validate the ID Response.
Maybe there is a better solution for that (I will think on it for the final version).
Thanks for contribute. your feedback is welcome!!