From b9d042b9b2ff791965d3d50fc3c44e67ddbc2d44 Mon Sep 17 00:00:00 2001 From: Jaime Perez Crespo <jaime.perez@uninett.no> Date: Mon, 19 Jan 2015 11:49:01 +0100 Subject: [PATCH] Remove setIdP() and getIdP() from SimpleSAML_Session. --- lib/SimpleSAML/Session.php | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/lib/SimpleSAML/Session.php b/lib/SimpleSAML/Session.php index daacada86..6f66c133d 100644 --- a/lib/SimpleSAML/Session.php +++ b/lib/SimpleSAML/Session.php @@ -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. * -- GitLab