support the new &$code parameter to soap calls, remove non initialized variable $response warnings

This commit is contained in:
<bdauvergne@entrouvert.com> 1210147641 +0200 0001-01-01 00:00:00 +00:00
parent 012f3ddbff
commit a8a63fb989
1 changed files with 3 additions and 1 deletions

View File

@ -62,6 +62,8 @@ class LassoSPKitSaml2 extends LassoSPKitSAMLCommon {
/** Name Id Management, SP inititated */
/* Request */
public function initiateNameIdManagement($newNameID, $method = LASSO_HTTP_METHOD_SOAP, $remoteID = null) {
$code = null;
$response = null;
$nidmanagement = new LassoNameIdManagement($this->server);
$this->findFederation($nidmanagement);
$retIR = $nidmanagement->initRequest($remoteID, $newNameID, $method);
@ -75,7 +77,7 @@ class LassoSPKitSaml2 extends LassoSPKitSAMLCommon {
$this->finishRedirectRequest($nidmanagement);
break;
case LASSO_HTTP_METHOD_SOAP:
$this->finishSOAPRequest($nidmanagement, $response);
$this->finishSOAPRequest($nidmanagement, $response, $code);
$retPRNIM = $this->processResponseNameIdManagement($response, $nidmanagement);
break;
case LASSO_HTTP_METHOD_ARTIFACT_GET: