change last arg of generateMetadata to a bundle of options
This commit is contained in:
parent
28d7422686
commit
a4cd86f578
|
@ -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;
|
||||
|
|
Reference in New Issue