Skip to content

Commit 2fbfec5

Browse files
Add namespaces to several Response-related elements
1 parent 8f5c91f commit 2fbfec5

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

types/response.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,13 @@ type Subject struct {
5959
}
6060

6161
type AuthnContext struct {
62+
XMLName xml.Name `xml:urn:oasis:names:tc:SAML:2.0:assertion AuthnContext"`
6263
AuthnContextClassRef *AuthnContextClassRef `xml:"AuthnContextClassRef"`
6364
}
6465

6566
type AuthnContextClassRef struct {
66-
Value string `xml:",chardata"`
67+
XMLName xml.Name `xml:urn:oasis:names:tc:SAML:2.0:assertion AuthnContextClassRef"`
68+
Value string `xml:",chardata"`
6769
}
6870

6971
type NameID struct {
@@ -133,7 +135,7 @@ type AttributeValue struct {
133135
}
134136

135137
type AuthnStatement struct {
136-
XMLName xml.Name `xml:"AuthnStatement"`
138+
XMLName xml.Name `xml:"urn:oasis:names:tc:SAML:2.0:assertion AuthnStatement"`
137139
AuthnInstant *time.Time `xml:"AuthnInstant,attr,omitempty"`
138140
SessionNotOnOrAfter *time.Time `xml:"SessionNotOnOrAfter,attr,omitempty"`
139141
AuthnContext *AuthnContext `xml:"AuthnContext"`

0 commit comments

Comments
 (0)