Skip to content
Snippets Groups Projects
Commit c7ea4017 authored by Guy Halse's avatar Guy Halse
Browse files

Skip logging statistics when we have a passive request

This is useful for preventing the consentAdmin module from generating a
lot of spurious saml20-idp-SSO logs as it passes passively through the
authproc filters to determine its attribute set.
parent b2f69297
No related branches found
No related tags found
No related merge requests found
...@@ -57,6 +57,11 @@ class sspmod_core_Auth_Process_StatisticsWithAttribute extends SimpleSAML_Auth_P ...@@ -57,6 +57,11 @@ class sspmod_core_Auth_Process_StatisticsWithAttribute extends SimpleSAML_Auth_P
$source = 'NA'; $source = 'NA';
$dest = 'NA'; $dest = 'NA';
if(array_key_exists('isPassive', $state) && $state['isPassive'] === true) {
// We have a passive request. Skip logging statistics
return;
}
if (array_key_exists($this->attribute, $state['Attributes'])) $logAttribute = $state['Attributes'][$this->attribute][0]; if (array_key_exists($this->attribute, $state['Attributes'])) $logAttribute = $state['Attributes'][$this->attribute][0];
if (array_key_exists('Source', $state)) { if (array_key_exists('Source', $state)) {
if (isset($state['Source']['core:statistics-id'])) { if (isset($state['Source']['core:statistics-id'])) {
......
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