-
Notifications
You must be signed in to change notification settings - Fork 38
/
saml_assertion_definitions.go
216 lines (213 loc) · 7.71 KB
/
saml_assertion_definitions.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
package wstrust
import "encoding/xml"
type samldefinitions struct {
XMLName xml.Name `xml:"Envelope"`
Text string `xml:",chardata"`
S string `xml:"s,attr"`
A string `xml:"a,attr"`
U string `xml:"u,attr"`
Header struct {
Text string `xml:",chardata"`
Action struct {
Text string `xml:",chardata"`
MustUnderstand string `xml:"mustUnderstand,attr"`
} `xml:"Action"`
Security struct {
Text string `xml:",chardata"`
MustUnderstand string `xml:"mustUnderstand,attr"`
O string `xml:"o,attr"`
Timestamp struct {
Text string `xml:",chardata"`
ID string `xml:"Id,attr"`
Created struct {
Text string `xml:",chardata"`
} `xml:"Created"`
Expires struct {
Text string `xml:",chardata"`
} `xml:"Expires"`
} `xml:"Timestamp"`
} `xml:"Security"`
} `xml:"Header"`
Body struct {
Text string `xml:",chardata"`
RequestSecurityTokenResponseCollection struct {
Text string `xml:",chardata"`
Trust string `xml:"trust,attr"`
RequestSecurityTokenResponse []struct {
Text string `xml:",chardata"`
Lifetime struct {
Text string `xml:",chardata"`
Created struct {
Text string `xml:",chardata"`
Wsu string `xml:"wsu,attr"`
} `xml:"Created"`
Expires struct {
Text string `xml:",chardata"`
Wsu string `xml:"wsu,attr"`
} `xml:"Expires"`
} `xml:"Lifetime"`
AppliesTo struct {
Text string `xml:",chardata"`
Wsp string `xml:"wsp,attr"`
EndpointReference struct {
Text string `xml:",chardata"`
Wsa string `xml:"wsa,attr"`
Address struct {
Text string `xml:",chardata"`
} `xml:"Address"`
} `xml:"EndpointReference"`
} `xml:"AppliesTo"`
RequestedSecurityToken struct {
Text string `xml:",chardata"`
AssertionRawXML string `xml:",innerxml"`
Assertion struct {
XMLName xml.Name
Text string `xml:",chardata"`
MajorVersion string `xml:"MajorVersion,attr"`
MinorVersion string `xml:"MinorVersion,attr"`
AssertionID string `xml:"AssertionID,attr"`
Issuer string `xml:"Issuer,attr"`
IssueInstant string `xml:"IssueInstant,attr"`
Saml string `xml:"saml,attr"`
Conditions struct {
Text string `xml:",chardata"`
NotBefore string `xml:"NotBefore,attr"`
NotOnOrAfter string `xml:"NotOnOrAfter,attr"`
AudienceRestrictionCondition struct {
Text string `xml:",chardata"`
Audience struct {
Text string `xml:",chardata"`
} `xml:"Audience"`
} `xml:"AudienceRestrictionCondition"`
} `xml:"Conditions"`
AttributeStatement struct {
Text string `xml:",chardata"`
Subject struct {
Text string `xml:",chardata"`
NameIdentifier struct {
Text string `xml:",chardata"`
Format string `xml:"Format,attr"`
} `xml:"NameIdentifier"`
SubjectConfirmation struct {
Text string `xml:",chardata"`
ConfirmationMethod struct {
Text string `xml:",chardata"`
} `xml:"ConfirmationMethod"`
} `xml:"SubjectConfirmation"`
} `xml:"Subject"`
Attribute []struct {
Text string `xml:",chardata"`
AttributeName string `xml:"AttributeName,attr"`
AttributeNamespace string `xml:"AttributeNamespace,attr"`
AttributeValue struct {
Text string `xml:",chardata"`
} `xml:"AttributeValue"`
} `xml:"Attribute"`
} `xml:"AttributeStatement"`
AuthenticationStatement struct {
Text string `xml:",chardata"`
AuthenticationMethod string `xml:"AuthenticationMethod,attr"`
AuthenticationInstant string `xml:"AuthenticationInstant,attr"`
Subject struct {
Text string `xml:",chardata"`
NameIdentifier struct {
Text string `xml:",chardata"`
Format string `xml:"Format,attr"`
} `xml:"NameIdentifier"`
SubjectConfirmation struct {
Text string `xml:",chardata"`
ConfirmationMethod struct {
Text string `xml:",chardata"`
} `xml:"ConfirmationMethod"`
} `xml:"SubjectConfirmation"`
} `xml:"Subject"`
} `xml:"AuthenticationStatement"`
Signature struct {
Text string `xml:",chardata"`
Ds string `xml:"ds,attr"`
SignedInfo struct {
Text string `xml:",chardata"`
CanonicalizationMethod struct {
Text string `xml:",chardata"`
Algorithm string `xml:"Algorithm,attr"`
} `xml:"CanonicalizationMethod"`
SignatureMethod struct {
Text string `xml:",chardata"`
Algorithm string `xml:"Algorithm,attr"`
} `xml:"SignatureMethod"`
Reference struct {
Text string `xml:",chardata"`
URI string `xml:"URI,attr"`
Transforms struct {
Text string `xml:",chardata"`
Transform []struct {
Text string `xml:",chardata"`
Algorithm string `xml:"Algorithm,attr"`
} `xml:"Transform"`
} `xml:"Transforms"`
DigestMethod struct {
Text string `xml:",chardata"`
Algorithm string `xml:"Algorithm,attr"`
} `xml:"DigestMethod"`
DigestValue struct {
Text string `xml:",chardata"`
} `xml:"DigestValue"`
} `xml:"Reference"`
} `xml:"SignedInfo"`
SignatureValue struct {
Text string `xml:",chardata"`
} `xml:"SignatureValue"`
KeyInfo struct {
Text string `xml:",chardata"`
Xmlns string `xml:"xmlns,attr"`
X509Data struct {
Text string `xml:",chardata"`
X509Certificate struct {
Text string `xml:",chardata"`
} `xml:"X509Certificate"`
} `xml:"X509Data"`
} `xml:"KeyInfo"`
} `xml:"Signature"`
} `xml:"Assertion"`
} `xml:"RequestedSecurityToken"`
RequestedAttachedReference struct {
Text string `xml:",chardata"`
SecurityTokenReference struct {
Text string `xml:",chardata"`
TokenType string `xml:"TokenType,attr"`
O string `xml:"o,attr"`
K string `xml:"k,attr"`
KeyIdentifier struct {
Text string `xml:",chardata"`
ValueType string `xml:"ValueType,attr"`
} `xml:"KeyIdentifier"`
} `xml:"SecurityTokenReference"`
} `xml:"RequestedAttachedReference"`
RequestedUnattachedReference struct {
Text string `xml:",chardata"`
SecurityTokenReference struct {
Text string `xml:",chardata"`
TokenType string `xml:"TokenType,attr"`
O string `xml:"o,attr"`
K string `xml:"k,attr"`
KeyIdentifier struct {
Text string `xml:",chardata"`
ValueType string `xml:"ValueType,attr"`
} `xml:"KeyIdentifier"`
} `xml:"SecurityTokenReference"`
} `xml:"RequestedUnattachedReference"`
TokenType struct {
Text string `xml:",chardata"`
} `xml:"TokenType"`
RequestType struct {
Text string `xml:",chardata"`
} `xml:"RequestType"`
KeyType struct {
Text string `xml:",chardata"`
} `xml:"KeyType"`
} `xml:"RequestSecurityTokenResponse"`
} `xml:"RequestSecurityTokenResponseCollection"`
} `xml:"Body"`
}