store the nameId of the request in the protocol object

This commit is contained in:
<bdauvergne@entrouvert.com> 1210785677 +0200 0001-01-01 00:00:00 +00:00
parent 2377a0bab5
commit 22f06227a6
2 changed files with 7 additions and 0 deletions

View File

@ -144,5 +144,8 @@ class LassoSPKitSaml2 extends LassoSPKitSAMLCommon {
LassoSPKitHelper::changeFederation($nidmanagement,
$this->session,
$nidmanagement->request->NewID);
if ($nidmanagement->nameIdentifier) {
$this->nameID = LassoSPKitHelper::profileGetNameID($nidmanagement);
}
}
}

View File

@ -20,6 +20,7 @@ class LassoSPKitSAMLCommon {
var $ret_str = "";
var $exception = null;
var $relayState = null;
var $nameID = null;
public function __construct(LassoSPKitGenericSession $session) {
$this->session = $session;
@ -390,6 +391,9 @@ class LassoSPKitSAMLCommon {
save them in the federations database. */
public function saveFederation(LassoProfile $profile) {
LassoSPKitHelper::saveFederation($profile, $this->session);
if ($profile->nameIdentifier) {
$this->nameID = LassoSPKitHelper::prileGetNameID($profile);
}
return 0;
}
/** Find a federation using as many hints as possible (maybe the nameid given in the request,