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

Remove getAuthInstant() from SimpleSAML_Session.

parent 3c292b78
No related branches found
No related tags found
No related merge requests found
...@@ -554,24 +554,6 @@ class SimpleSAML_Session { ...@@ -554,24 +554,6 @@ class SimpleSAML_Session {
} }
/**
* Retrieve the time the user was authenticated.
*
* @return int|NULL The timestamp for when the user was authenticated. NULL if the user hasn't authenticated.
* @deprecated
*/
public function getAuthnInstant() {
if (!isset($this->authData[$this->authority])) {
/* Not authenticated. */
return NULL;
}
assert('isset($this->authData[$this->authority]["AuthnInstant"])');
return $this->authData[$this->authority]['AuthnInstant'];
}
/** /**
* Retrieve the attributes associated with this session. * Retrieve the attributes associated with this session.
* *
......
...@@ -804,10 +804,6 @@ class sspmod_saml_IdP_SAML2 { ...@@ -804,10 +804,6 @@ class sspmod_saml_IdP_SAML2 {
if (isset($state['AuthnInstant'])) { if (isset($state['AuthnInstant'])) {
$a->setAuthnInstant($state['AuthnInstant']); $a->setAuthnInstant($state['AuthnInstant']);
} else {
/* For backwards compatibility. Remove in version 1.8. */
$session = SimpleSAML_Session::getSessionFromRequest();
$a->setAuthnInstant($session->getAuthnInstant());
} }
$sessionLifetime = $config->getInteger('session.duration', 8*60*60); $sessionLifetime = $config->getInteger('session.duration', 8*60*60);
......
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