Skip to content
Snippets Groups Projects
Commit ae8644ac authored by Olav Morken's avatar Olav Morken
Browse files

Session: Add getAuthnInstant().

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2136 44740490-163a-0410-bde0-09ae8108e29a
parent a628c7cb
No related branches found
No related tags found
No related merge requests found
......@@ -518,6 +518,20 @@ class SimpleSAML_Session {
public function isAuthenticated() {
return $this->authenticated;
}
/**
* 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.
*/
public function getAuthnInstant() {
if (!$this->isAuthenticated()) {
return NULL;
}
return $this->sessionstarted;
}
// *** Attributes ***
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment