diff options
| author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2009-04-30 14:58:13 +0000 |
|---|---|---|
| committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2009-04-30 14:58:13 +0000 |
| commit | be2825415efe58b73943eba8b0629a54445a32d9 (patch) | |
| tree | 321ee0b133d30e8dd597a7bd3dcab74298e8df36 /tests/data/response-3 | |
| parent | c5f5f84329a2738bdefd7f8984986738e519c6e0 (diff) | |
| download | lasso-be2825415efe58b73943eba8b0629a54445a32d9.tar.gz lasso-be2825415efe58b73943eba8b0629a54445a32d9.tar.xz lasso-be2825415efe58b73943eba8b0629a54445a32d9.zip | |
Add a stress test for serializing/deserializing code
* Makefile.am:
add targets
* tests2.c:
this simple makes lots of serializing, deserializing.
* data/response-1:
* data/response-2:
* data/response-3:
data test files
Diffstat (limited to 'tests/data/response-3')
| -rw-r--r-- | tests/data/response-3 | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/tests/data/response-3 b/tests/data/response-3 new file mode 100644 index 00000000..0e485d48 --- /dev/null +++ b/tests/data/response-3 @@ -0,0 +1,63 @@ +<samlp:ArtifactResponse xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" ID="_4CA30953B0EB4751E59BA239A1F58BEE" InResponseTo="_34B09583D8AD90E6B1345B27B2CA7DD2" Version="2.0" IssueInstant="2009-04-29T22:27:50Z" SignType="1" SignMethod="1"> + <saml:Issuer>http://idp5/metadata</saml:Issuer> + <Signature xmlns="http://www.w3.org/2000/09/xmldsig#"> +<SignedInfo> +<CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> +<SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/> +<Reference URI="#_4CA30953B0EB4751E59BA239A1F58BEE"> +<Transforms> +<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/> +<Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> +</Transforms> +<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/> +<DigestValue/> +</Reference> +</SignedInfo> +<SignatureValue/> +</Signature> + <samlp:Status> + <samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/> + </samlp:Status> + <samlp:PrivateKeyFile>./data//idp5-saml2/private-key.pem</samlp:PrivateKeyFile> + <samlp:Response ID="_7B2794BBDB00FFF0AE081819A9885B21" InResponseTo="_419A9FE32E90F7708AB7A92C9ADD8D55" Version="2.0" IssueInstant="2009-04-29T22:27:48Z" SignType="0" SignMethod="0"> + <saml:Issuer>http://idp5/metadata</saml:Issuer> + <samlp:Status> + <samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/> + </samlp:Status> + <saml:Assertion Version="2.0" ID="_CE34ABBDD29EDCCE9052BAB4E7171900" IssueInstant="2009-04-29T22:27:48Z" SignType="1" SignMethod="1" EncryptionActivated="false" EncryptionSymKeyType="0"> + <saml:Issuer>http://idp5/metadata</saml:Issuer> + <Signature xmlns="http://www.w3.org/2000/09/xmldsig#"> +<SignedInfo> +<CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> +<SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/> +<Reference URI="#_CE34ABBDD29EDCCE9052BAB4E7171900"> +<Transforms> +<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/> +<Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> +</Transforms> +<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/> +<DigestValue/> +</Reference> +</SignedInfo> +<SignatureValue/> +</Signature> + <saml:Subject> + <saml:NameID Format="urn:oasis:names:tc:SAML:2.0:nameid-format:persistent" NameQualifier="http://idp5/metadata" SPNameQualifier="http://sp5/metadata">_E7799BC7D0C299FABBB7367100656120</saml:NameID> + <saml:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer"> + <saml:SubjectConfirmationData NotOnOrAfter="FIXME: notOnOrAfter" Recipient="http://sp5/singleSignOnArtifact" InResponseTo="_419A9FE32E90F7708AB7A92C9ADD8D55"/> + </saml:SubjectConfirmation> + </saml:Subject> + <saml:Conditions> + <saml:AudienceRestriction> + <saml:Audience>http://sp5/metadata</saml:Audience> + </saml:AudienceRestriction> + </saml:Conditions> + <saml:AuthnStatement AuthnInstant="FIXME: authenticationInstant" SessionNotOnOrAfter="FIXME: notOnOrAfter"> + <saml:AuthnContext> + <saml:AuthnContextClassRef>urn:oasis:names:tc:SAML:1.0:am:password</saml:AuthnContextClassRef> + </saml:AuthnContext> + </saml:AuthnStatement> + <saml:PrivateKeyFile>./data//idp5-saml2/private-key.pem</saml:PrivateKeyFile> + </saml:Assertion> + </samlp:Response> +</samlp:ArtifactResponse>
\ No newline at end of file |
