Skip to content

Commit

Permalink
fix: fix the issue of adding xmlns="" when generating XML (casdoor#2799)
Browse files Browse the repository at this point in the history
* fix:solve the problem of adding xmlns="" when generating XML

* fix:remove fmt.Println

* Update saml_idp.go

---------

Co-authored-by: zhaoxianfei <[email protected]>
Co-authored-by: Eric Luo <[email protected]>
  • Loading branch information
3 people authored Mar 13, 2024
1 parent 3875896 commit e1e5943
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions object/saml_idp.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ type IdpSSODescriptor struct {
}

type NameIDFormat struct {
XMLName xml.Name
Value string `xml:",innerxml"`
// XMLName xml.Name
Value string `xml:",innerxml"`
}

type SingleSignOnService struct {
Expand All @@ -190,7 +190,7 @@ type SingleSignOnService struct {
}

type Attribute struct {
XMLName xml.Name
// XMLName xml.Name
Name string `xml:"Name,attr"`
NameFormat string `xml:"NameFormat,attr"`
FriendlyName string `xml:"FriendlyName,attr"`
Expand Down

0 comments on commit e1e5943

Please sign in to comment.