New policy rules for handling conditions.
[shibboleth/cpp-opensaml.git] / samltest / data / saml2 / profile / SAML2Assertion.xml
diff --git a/samltest/data/saml2/profile/SAML2Assertion.xml b/samltest/data/saml2/profile/SAML2Assertion.xml
new file mode 100644 (file)
index 0000000..758e79e
--- /dev/null
@@ -0,0 +1,13 @@
+<saml:Assertion xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" ID="aident" IssueInstant="1970-01-02T01:01:02.100Z" Version="2.0">
+    <saml:Issuer>https://idp.example.org/</saml:Issuer>
+    <saml:Subject><saml:NameID>John Doe</saml:NameID></saml:Subject>
+    <saml:Conditions NotBefore="2008-01-02T01:01:02.100Z" NotOnOrAfter="2030-01-02T01:01:02.100Z">
+        <saml:AudienceRestriction>
+            <saml:Audience>https://sp.example.org</saml:Audience>
+        </saml:AudienceRestriction>
+        <saml:OneTimeUse/>
+    </saml:Conditions>
+    <saml:AuthnStatement AuthnInstant="1970-01-02T01:01:02.100Z">
+        <saml:AuthnContext><saml:AuthnContextClassRef>foo</saml:AuthnContextClassRef></saml:AuthnContext>
+    </saml:AuthnStatement>
+</saml:Assertion>