MCPcopy Create free account
hub / github.com/crewjam/saml / VerifySignedElement

Method VerifySignedElement

signed_element_test.go:48–58  ·  view source on GitHub ↗
(_ *dsig.ValidationContext, el *etree.Element)

Source from the content-addressed store, hash-verified

46}
47
48func (v *signedElementVerifier) VerifySignedElement(_ *dsig.ValidationContext, el *etree.Element) (*etree.Element, error) {
49 v.calls++
50 signed := el.Copy()
51 for _, nameID := range signed.FindElements("//NameID") {
52 nameID.SetText("signed@example.com")
53 }
54 for _, sig := range signed.FindElements("./Signature") {
55 signed.RemoveChild(sig)
56 }
57 return signed, nil
58}
59
60// The service provider reads a signed Response or Assertion from the element
61// the signature check returns, not from the one it received.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected