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 коммит произвёл GitHub
Родитель 990c911867
Коммит 3c2fa3f69c
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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"`