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

Remove setIdP() and getIdP() from SimpleSAML_Session.

parent 527aaafe
No related branches found
No related tags found
No related merge requests found
...@@ -361,41 +361,6 @@ class SimpleSAML_Session { ...@@ -361,41 +361,6 @@ class SimpleSAML_Session {
} }
/**
* Set the IdP we are authenticated against.
*
* @param string|NULL $idp Our current IdP, or NULL if we aren't authenticated with an IdP.
* @deprecated
*/
public function setIdP($idp) {
assert('is_string($idp) || is_null($idp)');
assert('isset($this->authData[$this->authority])');
SimpleSAML_Logger::debug('Library - Session: Set IdP to : ' . $idp);
$this->dirty = true;
if ($idp !== NULL) {
$this->authData[$this->authority]['saml:sp:IdP'] = $idp;
} else {
unset($this->authData[$this->authority]['saml:sp:IdP']);
}
}
/**
* Retrieve the IdP we are currently authenticated against.
*
* @return string|NULL Our current IdP, or NULL if we aren't authenticated with an IdP.
* @deprecated
*/
public function getIdP() {
if (!isset($this->authData[$this->authority]['saml:sp:IdP'])) {
return NULL;
}
return $this->authData[$this->authority]['saml:sp:IdP'];
}
/** /**
* Set our current NameID. * Set our current NameID.
* *
......
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