We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c9cb20 commit e985226Copy full SHA for e985226
schema.go
@@ -353,12 +353,15 @@ func (r *ArtifactResolve) Element() *etree.Element {
353
if r.Issuer != nil {
354
el.AddChild(r.Issuer.Element())
355
}
356
- artifact := etree.NewElement("samlp:Artifact")
357
- artifact.SetText(r.Artifact)
358
- el.AddChild(artifact)
359
if r.Signature != nil {
+ // ADFS requires that <Signature> come before <Artifact>.
+ // ref: https://github.com/crewjam/saml/issues/535
+ // ref: https://www.wiktorzychla.com/2017/09/adfs-and-saml2-artifact-binding-woes.html
360
el.AddChild(r.Signature)
361
362
+ artifact := etree.NewElement("samlp:Artifact")
363
+ artifact.SetText(r.Artifact)
364
+ el.AddChild(artifact)
365
return el
366
367
0 commit comments