зеркало из https://github.com/mozilla/fleet.git
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:
Родитель
990c911867
Коммит
3c2fa3f69c
|
@ -12,7 +12,7 @@ type AuthnRequest struct {
|
||||||
SAMLSIG string `xml:"xmlns:samlsig,attr,omitempty"`
|
SAMLSIG string `xml:"xmlns:samlsig,attr,omitempty"`
|
||||||
ID string `xml:"ID,attr"`
|
ID string `xml:"ID,attr"`
|
||||||
Version string `xml:"Version,attr"`
|
Version string `xml:"Version,attr"`
|
||||||
ProtocolBinding string `xml:"ProtocolBinding,attr"`
|
ProtocolBinding string `xml:"ProtocolBinding,attr,omitempty"`
|
||||||
AssertionConsumerServiceURL string `xml:"AssertionConsumerServiceURL,attr"`
|
AssertionConsumerServiceURL string `xml:"AssertionConsumerServiceURL,attr"`
|
||||||
Destination string `xml:"Destination,attr"`
|
Destination string `xml:"Destination,attr"`
|
||||||
IssueInstant string `xml:"IssueInstant,attr"`
|
IssueInstant string `xml:"IssueInstant,attr"`
|
||||||
|
|
Загрузка…
Ссылка в новой задаче