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

s{aml20,hib13}/sp/AssertionConsumerService.php: Removed old (commented out) statistics code.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1671 44740490-163a-0410-bde0-09ae8108e29a
parent ebc3dcf8
No related branches found
No related tags found
No related merge requests found
...@@ -126,22 +126,6 @@ try { ...@@ -126,22 +126,6 @@ try {
*/ */
$attributes = $assertion->getAttributes(); $attributes = $assertion->getAttributes();
/**
* Make a log entry in the statistics for this SSO login.
*
* Needs to be replaced by auth proc
*
$tempattr = $authnResponse->getAttributes();
$realmattr = $config->getValue('statistics.realmattr', null);
$realmstr = 'NA';
if (!empty($realmattr)) {
if (array_key_exists($realmattr, $tempattr) && is_array($tempattr[$realmattr]) ) {
$realmstr = $tempattr[$realmattr][0];
} else {
SimpleSAML_Logger::warning('Could not get realm attribute to log [' . $realmattr. ']');
}
}
*/
SimpleSAML_Logger::stats('saml20-sp-SSO ' . $metadataHandler->getMetaDataCurrentEntityID() . ' ' . $idp . ' NA'); SimpleSAML_Logger::stats('saml20-sp-SSO ' . $metadataHandler->getMetaDataCurrentEntityID() . ' ' . $idp . ' NA');
......
...@@ -69,22 +69,6 @@ try { ...@@ -69,22 +69,6 @@ try {
SimpleSAML_Logger::info('Shib1.3 - SP.AssertionConsumerService: Successful authentication to IdP ' . $idpmetadata['entityid']); SimpleSAML_Logger::info('Shib1.3 - SP.AssertionConsumerService: Successful authentication to IdP ' . $idpmetadata['entityid']);
/**
* Make a log entry in the statistics for this SSO login.
Need to be replaced by a auth proc
$tempattr = $authnResponse->getAttributes();
$realmattr = $config->getValue('statistics.realmattr', null);
$realmstr = 'NA';
if (!empty($realmattr)) {
if (array_key_exists($realmattr, $tempattr) && is_array($tempattr[$realmattr]) ) {
$realmstr = $tempattr[$realmattr][0];
} else {
SimpleSAML_Logger::warning('Could not get realm attribute to log [' . $realmattr. ']');
}
}
*/
SimpleSAML_Logger::stats('shib13-sp-SSO ' . $metadata->getMetaDataCurrentEntityID('shib13-sp-hosted') . ' ' . $idpmetadata['entityid'] . ' NA'); SimpleSAML_Logger::stats('shib13-sp-SSO ' . $metadata->getMetaDataCurrentEntityID('shib13-sp-hosted') . ' ' . $idpmetadata['entityid'] . ' NA');
......
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