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

statistics: Log first SSO to a service during a session.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1420 44740490-163a-0410-bde0-09ae8108e29a
parent 6d7221a6
No related branches found
No related tags found
No related merge requests found
......@@ -62,9 +62,12 @@ class sspmod_core_Auth_Process_StatisticsWithAttribute extends SimpleSAML_Auth_P
if (array_key_exists('Source', $state)) $source = $state['Source']['entityid'];
if (array_key_exists('Destination', $state)) $dest = $state['Destination']['entityid'];
if (!array_key_exists('PreviousSSOTimestamp', $state)) {
/* The user hasn't authenticated with this SP earlier in this session. */
SimpleSAML_Logger::stats($this->typeTag . '-first ' . $dest . ' ' . $source . ' ' . $logAttribute);
}
SimpleSAML_Logger::stats($this->typeTag . ' ' . $dest . ' ' . $source . ' ' . $logAttribute);
}
}
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