attribute shouldn't appear in request if empty (#1541)

ProtocolBinding is an optional attribute in the SAML spec, and shouldn't appear in the request xml if it is not populated.
This commit is contained in:
John Murphy
2017-08-02 14:02:43 -05:00
committed by GitHub
parent 990c911867
commit 3c2fa3f69c
+1 -1
View File
@@ -12,7 +12,7 @@ type AuthnRequest struct {
SAMLSIG string `xml:"xmlns:samlsig,attr,omitempty"`
ID string `xml:"ID,attr"`
Version string `xml:"Version,attr"`
ProtocolBinding string `xml:"ProtocolBinding,attr"`
ProtocolBinding string `xml:"ProtocolBinding,attr,omitempty"`
AssertionConsumerServiceURL string `xml:"AssertionConsumerServiceURL,attr"`
Destination string `xml:"Destination,attr"`
IssueInstant string `xml:"IssueInstant,attr"`