1 <?xml version="1.0" encoding="US-ASCII"?>
3 targetNamespace="urn:oasis:names:tc:SAML:2.0:assertion"
4 xmlns="http://www.w3.org/2001/XMLSchema"
5 xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"
6 xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
7 xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"
8 elementFormDefault="unqualified"
9 attributeFormDefault="unqualified"
10 blockDefault="substitution"
12 <import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema.xsd"/>
13 <import namespace="http://www.w3.org/2001/04/xmlenc#" schemaLocation="xenc-schema.xsd"/>
16 Document identifier: saml-schema-assertion-2.0
17 Location: http://docs.oasis-open.org/security/saml/v2.0/
19 V1.0 (November, 2002):
20 Initial Standard Schema.
21 V1.1 (September, 2003):
22 Updates within the same V1.0 namespace.
24 New assertion schema for SAML V2.0 namespace.
27 <attributeGroup name="IDNameQualifiers">
28 <attribute name="NameQualifier" type="string" use="optional"/>
29 <attribute name="SPNameQualifier" type="string" use="optional"/>
31 <element name="BaseID" type="saml:BaseIDAbstractType"/>
32 <complexType name="BaseIDAbstractType" abstract="true">
33 <attributeGroup ref="saml:IDNameQualifiers"/>
35 <element name="NameID" type="saml:NameIDType"/>
36 <complexType name="NameIDType">
38 <extension base="string">
39 <attributeGroup ref="saml:IDNameQualifiers"/>
40 <attribute name="Format" type="anyURI" use="optional"/>
41 <attribute name="SPProvidedID" type="string" use="optional"/>
45 <complexType name="EncryptedElementType">
47 <element ref="xenc:EncryptedData"/>
48 <element ref="xenc:EncryptedKey" minOccurs="0" maxOccurs="unbounded"/>
51 <element name="EncryptedID" type="saml:EncryptedElementType"/>
52 <element name="Issuer" type="saml:NameIDType"/>
53 <element name="AssertionIDRef" type="NCName"/>
54 <element name="AssertionURIRef" type="anyURI"/>
55 <element name="Assertion" type="saml:AssertionType"/>
56 <complexType name="AssertionType">
58 <element ref="saml:Issuer"/>
59 <element ref="ds:Signature" minOccurs="0"/>
60 <element ref="saml:Subject" minOccurs="0"/>
61 <element ref="saml:Conditions" minOccurs="0"/>
62 <element ref="saml:Advice" minOccurs="0"/>
63 <choice minOccurs="0" maxOccurs="unbounded">
64 <element ref="saml:Statement"/>
65 <element ref="saml:AuthnStatement"/>
66 <element ref="saml:AuthzDecisionStatement"/>
67 <element ref="saml:AttributeStatement"/>
70 <attribute name="Version" type="string" use="required"/>
71 <attribute name="ID" type="ID" use="required"/>
72 <attribute name="IssueInstant" type="dateTime" use="required"/>
74 <element name="Subject" type="saml:SubjectType"/>
75 <complexType name="SubjectType">
79 <element ref="saml:BaseID"/>
80 <element ref="saml:NameID"/>
81 <element ref="saml:EncryptedID"/>
83 <element ref="saml:SubjectConfirmation" minOccurs="0" maxOccurs="unbounded"/>
85 <element ref="saml:SubjectConfirmation" maxOccurs="unbounded"/>
88 <element name="SubjectConfirmation" type="saml:SubjectConfirmationType"/>
89 <complexType name="SubjectConfirmationType">
91 <choice minOccurs="0">
92 <element ref="saml:BaseID"/>
93 <element ref="saml:NameID"/>
94 <element ref="saml:EncryptedID"/>
96 <element ref="saml:SubjectConfirmationData" minOccurs="0"/>
98 <attribute name="Method" type="anyURI" use="required"/>
100 <element name="SubjectConfirmationData" type="saml:SubjectConfirmationDataType"/>
101 <complexType name="SubjectConfirmationDataType" mixed="true">
103 <restriction base="anyType">
105 <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
107 <attribute name="NotBefore" type="dateTime" use="optional"/>
108 <attribute name="NotOnOrAfter" type="dateTime" use="optional"/>
109 <attribute name="Recipient" type="anyURI" use="optional"/>
110 <attribute name="InResponseTo" type="NCName" use="optional"/>
111 <attribute name="Address" type="string" use="optional"/>
112 <anyAttribute namespace="##other" processContents="lax"/>
116 <complexType name="KeyInfoConfirmationDataType" mixed="false">
118 <restriction base="saml:SubjectConfirmationDataType">
120 <element ref="ds:KeyInfo" maxOccurs="unbounded"/>
125 <element name="Conditions" type="saml:ConditionsType"/>
126 <complexType name="ConditionsType">
127 <choice minOccurs="0" maxOccurs="unbounded">
128 <element ref="saml:Condition"/>
129 <element ref="saml:AudienceRestriction"/>
130 <element ref="saml:OneTimeUse"/>
131 <element ref="saml:ProxyRestriction"/>
133 <attribute name="NotBefore" type="dateTime" use="optional"/>
134 <attribute name="NotOnOrAfter" type="dateTime" use="optional"/>
136 <element name="Condition" type="saml:ConditionAbstractType"/>
137 <complexType name="ConditionAbstractType" abstract="true"/>
138 <element name="AudienceRestriction" type="saml:AudienceRestrictionType"/>
139 <complexType name="AudienceRestrictionType">
141 <extension base="saml:ConditionAbstractType">
143 <element ref="saml:Audience" maxOccurs="unbounded"/>
148 <element name="Audience" type="anyURI"/>
149 <element name="OneTimeUse" type="saml:OneTimeUseType" />
150 <complexType name="OneTimeUseType">
152 <extension base="saml:ConditionAbstractType"/>
155 <element name="ProxyRestriction" type="saml:ProxyRestrictionType"/>
156 <complexType name="ProxyRestrictionType">
158 <extension base="saml:ConditionAbstractType">
160 <element ref="saml:Audience" minOccurs="0" maxOccurs="unbounded"/>
162 <attribute name="Count" type="nonNegativeInteger" use="optional"/>
166 <element name="Advice" type="saml:AdviceType"/>
167 <complexType name="AdviceType">
168 <choice minOccurs="0" maxOccurs="unbounded">
169 <element ref="saml:AssertionIDRef"/>
170 <element ref="saml:AssertionURIRef"/>
171 <element ref="saml:Assertion"/>
172 <element ref="saml:EncryptedAssertion"/>
173 <any namespace="##other" processContents="lax"/>
176 <element name="EncryptedAssertion" type="saml:EncryptedElementType"/>
177 <element name="Statement" type="saml:StatementAbstractType"/>
178 <complexType name="StatementAbstractType" abstract="true"/>
179 <element name="AuthnStatement" type="saml:AuthnStatementType"/>
180 <complexType name="AuthnStatementType">
182 <extension base="saml:StatementAbstractType">
184 <element ref="saml:SubjectLocality" minOccurs="0"/>
185 <element ref="saml:AuthnContext"/>
187 <attribute name="AuthnInstant" type="dateTime" use="required"/>
188 <attribute name="SessionIndex" type="string" use="optional"/>
189 <attribute name="SessionNotOnOrAfter" type="dateTime" use="optional"/>
193 <element name="SubjectLocality" type="saml:SubjectLocalityType"/>
194 <complexType name="SubjectLocalityType">
195 <attribute name="Address" type="string" use="optional"/>
196 <attribute name="DNSName" type="string" use="optional"/>
198 <element name="AuthnContext" type="saml:AuthnContextType"/>
199 <complexType name="AuthnContextType">
203 <element ref="saml:AuthnContextClassRef"/>
204 <choice minOccurs="0">
205 <element ref="saml:AuthnContextDecl"/>
206 <element ref="saml:AuthnContextDeclRef"/>
210 <element ref="saml:AuthnContextDecl"/>
211 <element ref="saml:AuthnContextDeclRef"/>
214 <element ref="saml:AuthenticatingAuthority" minOccurs="0" maxOccurs="unbounded"/>
217 <element name="AuthnContextClassRef" type="anyURI"/>
218 <element name="AuthnContextDeclRef" type="anyURI"/>
219 <element name="AuthnContextDecl" type="anyType"/>
220 <element name="AuthenticatingAuthority" type="anyURI"/>
221 <element name="AuthzDecisionStatement" type="saml:AuthzDecisionStatementType"/>
222 <complexType name="AuthzDecisionStatementType">
224 <extension base="saml:StatementAbstractType">
226 <element ref="saml:Action" maxOccurs="unbounded"/>
227 <element ref="saml:Evidence" minOccurs="0"/>
229 <attribute name="Resource" type="anyURI" use="required"/>
230 <attribute name="Decision" type="saml:DecisionType" use="required"/>
234 <simpleType name="DecisionType">
235 <restriction base="string">
236 <enumeration value="Permit"/>
237 <enumeration value="Deny"/>
238 <enumeration value="Indeterminate"/>
241 <element name="Action" type="saml:ActionType"/>
242 <complexType name="ActionType">
244 <extension base="string">
245 <attribute name="Namespace" type="anyURI" use="required"/>
249 <element name="Evidence" type="saml:EvidenceType"/>
250 <complexType name="EvidenceType">
251 <choice maxOccurs="unbounded">
252 <element ref="saml:AssertionIDRef"/>
253 <element ref="saml:AssertionURIRef"/>
254 <element ref="saml:Assertion"/>
255 <element ref="saml:EncryptedAssertion"/>
258 <element name="AttributeStatement" type="saml:AttributeStatementType"/>
259 <complexType name="AttributeStatementType">
261 <extension base="saml:StatementAbstractType">
262 <choice maxOccurs="unbounded">
263 <element ref="saml:Attribute"/>
264 <element ref="saml:EncryptedAttribute"/>
269 <element name="Attribute" type="saml:AttributeType"/>
270 <complexType name="AttributeType">
272 <element ref="saml:AttributeValue" minOccurs="0" maxOccurs="unbounded"/>
274 <attribute name="Name" type="string" use="required"/>
275 <attribute name="NameFormat" type="anyURI" use="optional"/>
276 <attribute name="FriendlyName" type="string" use="optional"/>
277 <anyAttribute namespace="##other" processContents="lax"/>
279 <element name="AttributeValue" type="anyType" nillable="true"/>
280 <element name="EncryptedAttribute" type="saml:EncryptedElementType"/>