Skip to content
Snippets Groups Projects
Commit a3a709e5 authored by Jaime Perez Crespo's avatar Jaime Perez Crespo
Browse files

Remove setNameID() and getNameID() from SimpleSAML_Session.

parent b9d042b9
No related branches found
No related tags found
No related merge requests found
......@@ -361,40 +361,6 @@ class SimpleSAML_Session {
}
/**
* Set our current NameID.
*
* @param array|NULL $nameid The NameID we received from the IdP
* @deprecated
*/
public function setNameID($nameid) {
assert('is_array($nameid) || is_null($nameid)');
assert('isset($this->authData[$this->authority])');
SimpleSAML_Logger::debug('Library - Session: Set nameID: ');
$this->dirty = true;
if ($nameid !== NULL) {
$this->authData[$this->authority]['saml:sp:NameID'] = $nameid;
} else {
unset($this->authData[$this->authority]['saml:sp:NameID']);
}
}
/**
* Get our NameID.
*
* @return array|NULL The NameID we received from the IdP.
* @deprecated
*/
public function getNameID() {
if (!isset($this->authData[$this->authority]['saml:sp:NameID'])) {
return NULL;
}
return $this->authData[$this->authority]['saml:sp:NameID'];
}
/**
* Set remember me expire time.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment