File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,6 +58,14 @@ type Subject struct {
5858 SubjectConfirmation * SubjectConfirmation `xml:"SubjectConfirmation"`
5959}
6060
61+ type AuthnContext struct {
62+ AuthnContextClassRef * AuthnContextClassRef `xml:"AuthnContextClassRef"`
63+ }
64+
65+ type AuthnContextClassRef struct {
66+ Value string `xml:",chardata"`
67+ }
68+
6169type NameID struct {
6270 XMLName xml.Name `xml:"urn:oasis:names:tc:SAML:2.0:assertion NameID"`
6371 Value string `xml:",chardata"`
@@ -125,7 +133,8 @@ type AttributeValue struct {
125133}
126134
127135type AuthnStatement struct {
128- XMLName xml.Name `xml:"AuthnStatement"`
129- AuthnInstant * time.Time `xml:"AuthnInstant,attr,omitempty"`
130- SessionNotOnOrAfter * time.Time `xml:"SessionNotOnOrAfter,attr,omitempty"`
136+ XMLName xml.Name `xml:"AuthnStatement"`
137+ AuthnInstant * time.Time `xml:"AuthnInstant,attr,omitempty"`
138+ SessionNotOnOrAfter * time.Time `xml:"SessionNotOnOrAfter,attr,omitempty"`
139+ AuthnContext * AuthnContext `xml:"AuthnContext"`
131140}
You can’t perform that action at this time.
0 commit comments