Skip to content
Snippets Groups Projects
Commit db17e644 authored by Andjelko Horvat's avatar Andjelko Horvat
Browse files

Sign artifact response (issue 429).

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2895 44740490-163a-0410-bde0-09ae8108e29a
parent 37c590a6
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
......@@ -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);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment