change last arg of generateMetadata to a bundle of options

This commit is contained in:
<bdauvergne@entrouvert.com> 1209043492 +0200 0001-01-01 00:00:00 +00:00
parent 28d7422686
commit a4cd86f578
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
require_once('lassospkit_debug.inc.php');
require_once('lassospkit_endpoints.inc.php');
require_once('lassospkit_metadata.inc.php');
require_once('lassospkit_saml2.inc.php');
class LassoSPKitSaml2Endpoint extends LassoSPKitEndpoint {
function LassoSPKitSaml2Endpoint() {
@ -20,7 +21,7 @@ class LassoSPKitSaml2Endpoint extends LassoSPKitEndpoint {
$pkey = $datadir . "/" . PRIVATE_KEY;
LassoSPKitUtils::extractPublicKey($pkey, $publickey, $error);
try {
$content = LassoSPKitMetadataSAML2::generateMetadata(LassoSPKitConfig::get('baseUrl'), LassoSPKitConfig::get('organization'), $publickey);
$content = LassoSPKitMetadataSAML2::generateMetadata(LassoSPKitConfig::get('baseUrl'), LassoSPKitConfig::get('organization'), array('publickey' => $publickey));
if ($content) {
header('Content-type: text/xml');
echo $content;