Skip to content

Commit

Permalink
add helping comment
Browse files Browse the repository at this point in the history
  • Loading branch information
himran92 committed Nov 28, 2024
1 parent 340d6e4 commit 9b4f45e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions saml/test/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,8 @@ func (p *TestProvider) SamlResponse(t *testing.T, opts ...ResponseOption) string
signCtx := dsig.NewDefaultSigningContext(p.keystore)

// sign child object assertions
// note we will sign the `assertion` first and then only the parent `response`, because the `response`
// signature is based on the entire contents of `response` (including `assertion` signature)
if opt.signAssertionElem {
responseEl := doc.SelectElement("Response")
for _, assert := range responseEl.FindElements("Assertion") {
Expand Down

0 comments on commit 9b4f45e

Please sign in to comment.