Skip to content
Snippets Groups Projects
Unverified Commit e71b85f0 authored by Pavel Vyskočil's avatar Pavel Vyskočil Committed by GitHub
Browse files

Merge pull request #39 from BaranekD/log

Removed logging info about login
parents 85b0b322 a5e772e9
Branches
Tags
No related merge requests found
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
## [Unreleased] ## [Unreleased]
#### Removed
- Removed logging info about login in Statistics Process filter
## [v4.0.0] ## [v4.0.0]
#### Added #### Added
......
...@@ -24,29 +24,5 @@ class Statistics extends ProcessingFilter ...@@ -24,29 +24,5 @@ class Statistics extends ProcessingFilter
$dateTime = new DateTime(); $dateTime = new DateTime();
$dbCmd = new DatabaseCommand(); $dbCmd = new DatabaseCommand();
$dbCmd->insertLogin($request, $dateTime); $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);
}
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment