Skip to content
Snippets Groups Projects
Commit f1681824 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Add support for private key password

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1538 44740490-163a-0410-bde0-09ae8108e29a
parent b0447876
No related branches found
No related tags found
No related merge requests found
......@@ -48,11 +48,12 @@ SimpleSAML_Logger::debug('ENTRA en icauth');
$config = SimpleSAML_Configuration::getInstance();
$autoconfig = $config->copyFromBase('logininfocard', 'config-login-infocard.php');
$idp_key = $autoconfig->getValue('idp_key');
$idp_pass = $autoconfig->getValue('idp_key_pass', NULL);
$sts_crt = $autoconfig->getValue('sts_crt');
$Infocard = $autoconfig->getValue('InfoCard');
$infocard = new sspmod_InfoCard_RP_InfoCard();
$infocard->addIDPKey($idp_key);
$infocard->addIDPKey($idp_key, $idp_key_pass);
$infocard->addSTSCertificate($sts_crt);
if (!$xmlToken)
SimpleSAML_Logger::debug("XMLtoken: ".$xmlToken);
......
......@@ -120,10 +120,10 @@ SimpleSAML_Logger::debug('IC: secureToken');
catch(Exception $e) {
SimpleSAML_Logger::debug('ProcSecToken '.$e);
$retval->setError('Failed to extract assertion document');
throw new Exception('Failed to extract assertion document');
throw new Exception('Failed to extract assertion document: ' . $e->getMessage());
$retval->setCode(Zend_InfoCard_Claims::RESULT_PROCESSING_FAILURE);
return $retval;
}
}
try {
$assertions = self::getAssertions($decryptedToken);
......
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