Skip to content

Commit

Permalink
Add namespaces to several Response-related elements
Browse files Browse the repository at this point in the history
  • Loading branch information
russellhaering committed May 4, 2018
1 parent 8f5c91f commit 2fbfec5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions types/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,13 @@ type Subject struct {
}

type AuthnContext struct {
XMLName xml.Name `xml:urn:oasis:names:tc:SAML:2.0:assertion AuthnContext"`
AuthnContextClassRef *AuthnContextClassRef `xml:"AuthnContextClassRef"`
}

type AuthnContextClassRef struct {
Value string `xml:",chardata"`
XMLName xml.Name `xml:urn:oasis:names:tc:SAML:2.0:assertion AuthnContextClassRef"`
Value string `xml:",chardata"`
}

type NameID struct {
Expand Down Expand Up @@ -133,7 +135,7 @@ type AttributeValue struct {
}

type AuthnStatement struct {
XMLName xml.Name `xml:"AuthnStatement"`
XMLName xml.Name `xml:"urn:oasis:names:tc:SAML:2.0:assertion AuthnStatement"`
AuthnInstant *time.Time `xml:"AuthnInstant,attr,omitempty"`
SessionNotOnOrAfter *time.Time `xml:"SessionNotOnOrAfter,attr,omitempty"`
AuthnContext *AuthnContext `xml:"AuthnContext"`
Expand Down

0 comments on commit 2fbfec5

Please sign in to comment.