Skip to content

Commit 4b1b265

Browse files
Merge pull request #38 from pt-arvind/authncontext
added authn context tracking
2 parents 23b0b0c + 053096a commit 4b1b265

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

types/response.go

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff 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+
6169
type 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

127135
type 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
}

0 commit comments

Comments
 (0)