diff --git a/CHANGELOG.md b/CHANGELOG.md index f411119f3fb9685450b80b9c0fd97801330392ee..b8acfcc8711310c9f2afcf0fcc34d6d4ae9e7cea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ All notable changes to this project will be documented in this file. ## [Unreleased] +#### Removed +- Removed logging info about login in Statistics Process filter ## [v4.0.0] #### Added diff --git a/lib/Auth/Process/Statistics.php b/lib/Auth/Process/Statistics.php index ace9c133b96eae909415732a2b48785b723ce7a7..5a65bd395f4ec38194c893328b7f7441f8afd7bf 100644 --- a/lib/Auth/Process/Statistics.php +++ b/lib/Auth/Process/Statistics.php @@ -24,29 +24,5 @@ class Statistics extends ProcessingFilter $dateTime = new DateTime(); $dbCmd = new DatabaseCommand(); $dbCmd->insertLogin($request, $dateTime); - $spEntityId = $request['SPMetadata']['entityid']; - - $eduPersonUniqueId = ''; - $sourceIdPEppn = ''; - $sourceIdPEntityId = ''; - - if (isset($request['Attributes']['eduPersonUniqueId'][0])) { - $eduPersonUniqueId = $request['Attributes']['eduPersonUniqueId'][0]; - } - if (isset($request['Attributes']['sourceIdPEppn'][0])) { - $sourceIdPEppn = $request['Attributes']['sourceIdPEppn'][0]; - } - if (isset($request['Attributes']['sourceIdPEntityID'][0])) { - $sourceIdPEntityId = $request['Attributes']['sourceIdPEntityID'][0]; - } - - if (isset($request['perun']['user'])) { - $user = $request['perun']['user']; - Logger::notice('UserId: ' . $user->getId() . ', identity: ' . $eduPersonUniqueId . ', service: ' - . $spEntityId . ', external identity: ' . $sourceIdPEppn . ' from ' . $sourceIdPEntityId); - } else { - Logger::notice('User identity: ' . $eduPersonUniqueId . ', service: ' . $spEntityId . - ', external identity: ' . $sourceIdPEppn . ' from ' . $sourceIdPEntityId); - } } }