From 5dba91389118bfa4fffd41a9d1e505f97b2dc8c3 Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Mon, 17 Aug 2009 09:03:45 +0000 Subject: [PATCH] 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 --- www/saml2/sp/AssertionConsumerService.php | 16 ---------------- www/shib13/sp/AssertionConsumerService.php | 16 ---------------- 2 files changed, 32 deletions(-) diff --git a/www/saml2/sp/AssertionConsumerService.php b/www/saml2/sp/AssertionConsumerService.php index f03dfbe3e..2fa55b819 100644 --- a/www/saml2/sp/AssertionConsumerService.php +++ b/www/saml2/sp/AssertionConsumerService.php @@ -126,22 +126,6 @@ try { */ $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'); diff --git a/www/shib13/sp/AssertionConsumerService.php b/www/shib13/sp/AssertionConsumerService.php index 3b4df64ef..5f368efb5 100644 --- a/www/shib13/sp/AssertionConsumerService.php +++ b/www/shib13/sp/AssertionConsumerService.php @@ -69,22 +69,6 @@ try { 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'); -- GitLab