summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Hedberg <roland.hedberg@adm.umu.se>2014-12-10 14:39:05 +0100
committerRoland Hedberg <roland.hedberg@adm.umu.se>2014-12-10 14:39:05 +0100
commitbd95adf37da42c8da650ffe1da806d2d69093a37 (patch)
tree0244522515b79c85791ff0efb28711dbfcb105c9
parentc3f51e34cd51cccd6f5bb076dd3bf6a5b247d727 (diff)
downloadpysaml2-bd95adf37da42c8da650ffe1da806d2d69093a37.tar.gz
Missing file
-rw-r--r--tests/attribute_response.xml84
1 files changed, 84 insertions, 0 deletions
diff --git a/tests/attribute_response.xml b/tests/attribute_response.xml
new file mode 100644
index 00000000..e6f88c6a
--- /dev/null
+++ b/tests/attribute_response.xml
@@ -0,0 +1,84 @@
+<saml2p:Response xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol"
+ Destination="https://myreviewroom.com/saml2/acs/"
+ ID="_ad152626fd672edce3ddd43f14d09e02"
+ InResponseTo="id-f4d370f3d03650f3ec0da694e2348bfe"
+ IssueInstant="2014-09-14T21:01:32.081Z"
+ Version="2.0"
+ >
+ <saml2:Issuer xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion"
+ Format="urn:oasis:names:tc:SAML:2.0:nameid-format:entity">
+ https://idp.canarie.ca/idp/shibboleth
+ </saml2:Issuer>
+ <saml2p:Status>
+ <saml2p:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/>
+ </saml2p:Status>
+ <saml2:Assertion xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion"
+ ID="_2bbbcc700be3473f4796722b07806638"
+ IssueInstant="2014-09-14T21:01:32.081Z"
+ Version="2.0"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ >
+ <saml2:Issuer Format="urn:oasis:names:tc:SAML:2.0:nameid-format:entity">
+ https://idp.canarie.ca/idp/shibboleth
+ </saml2:Issuer>
+ <saml2:Subject>
+ <saml2:NameID
+ Format="urn:oasis:names:tc:SAML:2.0:nameid-format:transient"
+ NameQualifier="https://idp.canarie.ca/idp/shibboleth"
+ SPNameQualifier="urn:mace:example.com:saml:roland:sp"
+ >_f6224ef32bb60b146e88463aab04aa6a
+ </saml2:NameID>
+ <saml2:SubjectConfirmation
+ Method="urn:oasis:names:tc:SAML:2.0:cm:bearer">
+ <saml2:SubjectConfirmationData Address="192.168.1.1"
+ InResponseTo="id-f4d370f3d03650f3ec0da694e2348bfe"
+ NotOnOrAfter="2014-09-14T21:06:32.081Z"
+ Recipient="https://myreviewroom.com/saml2/acs/"
+ />
+ </saml2:SubjectConfirmation>
+ </saml2:Subject>
+ <saml2:Conditions NotBefore="2014-09-14T21:01:32.081Z"
+ NotOnOrAfter="2014-09-14T21:06:32.081Z"
+ >
+ <saml2:AudienceRestriction>
+ <saml2:Audience>urn:mace:example.com:saml:roland:sp
+ </saml2:Audience>
+ </saml2:AudienceRestriction>
+ </saml2:Conditions>
+ <saml2:AuthnStatement AuthnInstant="2014-09-14T21:01:11.172Z"
+ SessionIndex="a01c6b996dcc7e2e30a3ecbf30e166211f49cd2f857f44b461f56b96a38285a7"
+ >
+ <saml2:SubjectLocality Address="192.168.1.1"/>
+ <saml2:AuthnContext>
+ <saml2:AuthnContextClassRef>
+ urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport
+ </saml2:AuthnContextClassRef>
+ </saml2:AuthnContext>
+ </saml2:AuthnStatement>
+ <saml2:AttributeStatement>
+ <saml2:Attribute FriendlyName="mail"
+ Name="urn:oid:0.9.2342.19200300.100.1.3"
+ NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"
+ >
+ <saml2:AttributeValue
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:type="xs:string"
+ >Chris.Phillips@canarie.ca
+ </saml2:AttributeValue>
+ </saml2:Attribute>
+ <saml2:Attribute FriendlyName="eduPersonTargetedID"
+ Name="urn:oid:1.3.6.1.4.1.5923.1.1.1.10"
+ NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"
+ >
+ <saml2:AttributeValue>
+ <saml2:NameID
+ Format="urn:oasis:names:tc:SAML:2.0:nameid-format:persistent"
+ NameQualifier="https://idp.canarie.ca/idp/shibboleth"
+ SPNameQualifier="urn:mace:example.com:saml:roland:sp"
+ >NRIvsX5gMK+TnqejcQP9jH8nTIk=
+ </saml2:NameID>
+ </saml2:AttributeValue>
+ </saml2:Attribute>
+ </saml2:AttributeStatement>
+ </saml2:Assertion>
+</saml2p:Response>