From db17e6445945276946451ed0c53f111c8e2d0801 Mon Sep 17 00:00:00 2001 From: Andjelko Horvat <comel@vingd.com> Date: Wed, 7 Sep 2011 08:25:24 +0000 Subject: [PATCH] Sign artifact response (issue 429). git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2895 44740490-163a-0410-bde0-09ae8108e29a --- modules/saml/lib/Message.php | 2 +- www/saml2/idp/ArtifactResolutionService.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/saml/lib/Message.php b/modules/saml/lib/Message.php index 4022a9008..9dd11c65f 100644 --- a/modules/saml/lib/Message.php +++ b/modules/saml/lib/Message.php @@ -17,7 +17,7 @@ class sspmod_saml_Message { * @param SimpleSAML_Configuration $dstMetadata The metadata of the recipient. * @param SAML2_Message $element The element we should add the data to. */ - public static function addSign(SimpleSAML_Configuration $srcMetadata, SimpleSAML_Configuration $dstMetadata, SAML2_SignedElement $element) { + public static function addSign(SimpleSAML_Configuration $srcMetadata, SimpleSAML_Configuration $dstMetadata = NULL, SAML2_SignedElement $element) { $keyArray = SimpleSAML_Utilities::loadPrivateKey($srcMetadata, TRUE); $certArray = SimpleSAML_Utilities::loadPublicKey($srcMetadata, FALSE); diff --git a/www/saml2/idp/ArtifactResolutionService.php b/www/saml2/idp/ArtifactResolutionService.php index ac4592d61..3b674b315 100644 --- a/www/saml2/idp/ArtifactResolutionService.php +++ b/www/saml2/idp/ArtifactResolutionService.php @@ -51,4 +51,5 @@ $artifactResponse = new SAML2_ArtifactResponse(); $artifactResponse->setIssuer($idpEntityId); $artifactResponse->setInResponseTo($request->getId()); $artifactResponse->setAny($responseXML); +sspmod_saml_Message::addSign($idpMetadata, NULL, $artifactResponse); $binding->send($artifactResponse); -- GitLab