Put <ds:Signature> as the first child for enveloped signature.#117
Open
smstong wants to merge 1 commit intorussellhaering:mainfrom
Open
Put <ds:Signature> as the first child for enveloped signature.#117smstong wants to merge 1 commit intorussellhaering:mainfrom
smstong wants to merge 1 commit intorussellhaering:mainfrom
Conversation
The current code has two issues: (1) It add sig to the signed element's Child, but does NOT update the index and parent. It should call "Element.AddChild(t)" (2) the <ds:Signature> is added as the last child. But based on SAML standard, this should be the first child. Both of these issues will be solved by this update.
71fbc7a to
5926603
Compare
Owner
|
Do you have a reference on SAML wanting I think you're right that there's an issue here, but at a glance what I'm seeing suggests that in SAML the |
Author
|
As you said, for SAML Assertion, ds:Signature is the 2nd child element. But for SAML Metadata, ds:Signature is always the first child element. To make this API to acommodate all different situations, probaly it needs another parmamer to denote the index of ds:Signature, like below: |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The current code has two issues:
(1) It add sig to the signed element's Child, but does NOT update the index and parent. It should call "Element.AddChild(t)"
(2) the ds:Signature is added as the last child. But based on SAML standard, this should be the first child.
Both of these issues will be solved by this update.