fix error in names of parameter keys

This commit is contained in:
<bdauvergne@entrouvert.com> 1207755128 +0200 0001-01-01 00:00:00 +00:00
parent ccdc33da16
commit 791096b949
1 changed files with 4 additions and 3 deletions

View File

@ -33,7 +33,7 @@ class LassoSPKitSaml2 extends LassoSPKitSAMLCommon {
} else {
$format = LASSO_SAML2_NAME_IDENTIFIER_FORMAT_TRANSIENT;
}
return $this->ssoInit(array('create' => $create, 'format' => $format, 'passive' => $passive));
return $this->ssoInit(array('allowCreate' => $create, 'nameIDFormat' => $format, 'isPassive' => $passive));
}
function ssoInit($params = array())
{
@ -45,8 +45,9 @@ class LassoSPKitSaml2 extends LassoSPKitSAMLCommon {
'isConsentObtained' => FALSE,
'forceAuthn' => FALSE,
'isPassive' => FALSE);
extract(array_merge($default_params, $params));
$params = array_merge($default_params, $params);
extract($params);
lassospkit_debuglog("Params isPassive: $isPassive allowCreate: $allowCreate format: $nameIDFormat");
$login = null;
return parent::ssoCommon($login, $remoteID, $method, $isConsentObtained, $forceAuthn, $isPassive, array('nameIDFormat'=>$nameIDFormat, 'allowCreate' => $allowCreate));
}