fix: fix the issue of adding xmlns="" when generating XML (#2799)

* fix:solve the problem of adding xmlns="" when generating XML

* fix:remove fmt.Println

* Update saml_idp.go

---------

Co-authored-by: zhaoxianfei <zhaoxianfei@meiqia.cn>
Co-authored-by: Eric Luo <hsluoyz@qq.com>
This commit is contained in:
leon.zhao 2024-03-13 23:59:05 +08:00 committed by GitHub
parent 3875896c1e
commit e1e5943a3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -179,8 +179,8 @@ type IdpSSODescriptor struct {
} }
type NameIDFormat struct { type NameIDFormat struct {
XMLName xml.Name // XMLName xml.Name
Value string `xml:",innerxml"` Value string `xml:",innerxml"`
} }
type SingleSignOnService struct { type SingleSignOnService struct {
@ -190,7 +190,7 @@ type SingleSignOnService struct {
} }
type Attribute struct { type Attribute struct {
XMLName xml.Name // XMLName xml.Name
Name string `xml:"Name,attr"` Name string `xml:"Name,attr"`
NameFormat string `xml:"NameFormat,attr"` NameFormat string `xml:"NameFormat,attr"`
FriendlyName string `xml:"FriendlyName,attr"` FriendlyName string `xml:"FriendlyName,attr"`