Definition at line 9 of file StatisticsWithAttribute.php.
◆ __construct()
sspmod_core_Auth_Process_StatisticsWithAttribute::__construct |
( |
|
$config, |
|
|
|
$reserved |
|
) |
| |
Initialize this filter.
- Parameters
-
array | $config | Configuration information about this filter. |
mixed | $reserved | For future use. |
Definition at line 34 of file StatisticsWithAttribute.php.
References $config.
36 parent::__construct(
$config, $reserved);
40 if (array_key_exists(
'attributename',
$config)) {
41 $this->attribute =
$config[
'attributename'];
42 if (!is_string($this->attribute)) {
43 throw new Exception(
'Invalid attribute name given to core:StatisticsWithAttribute filter.');
47 if (array_key_exists(
'type',
$config)) {
48 $this->typeTag =
$config[
'type'];
49 if (!is_string($this->typeTag)) {
50 throw new Exception(
'Invalid typeTag given to core:StatisticsWithAttribute filter.');
54 if (array_key_exists(
'skipPassive',
$config)) {
55 $this->skipPassive = (bool)
$config[
'skipPassive'];
◆ process()
sspmod_core_Auth_Process_StatisticsWithAttribute::process |
( |
& |
$state | ) |
|
Log line.
- Parameters
-
array | &$state | The current state. |
Definition at line 65 of file StatisticsWithAttribute.php.
References $attribute, $source, $state, setIdentifier(), and SimpleSAML\Logger\stats().
68 assert(array_key_exists(
'Attributes',
$state));
73 if (array_key_exists(
'isPassive',
$state) &&
$state[
'isPassive'] ===
true) {
74 if ($this->skipPassive ===
true) {
78 $isPassive =
'passive-';
81 if (array_key_exists($this->attribute,
$state[
'Attributes'])) {
88 if (!array_key_exists(
'PreviousSSOTimestamp',
$state)) {
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
setIdentifier($direction, $state)
◆ setIdentifier()
sspmod_core_Auth_Process_StatisticsWithAttribute::setIdentifier |
( |
|
$direction, |
|
|
|
$state |
|
) |
| |
|
private |
- Parameters
-
string | &$direction | Either 'Source' or 'Destination'. |
array | $state | The current state. |
- Returns
- string
Definition at line 102 of file StatisticsWithAttribute.php.
References $state.
Referenced by process().
104 if (array_key_exists($direction,
$state)) {
105 if (isset(
$state[$direction][
'core:statistics-id'])) {
106 return $state[$direction][
'core:statistics-id'];
108 return $state[$direction][
'entityid'];
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
◆ $attribute
sspmod_core_Auth_Process_StatisticsWithAttribute::$attribute = null |
|
private |
◆ $skipPassive
sspmod_core_Auth_Process_StatisticsWithAttribute::$skipPassive = false |
|
private |
◆ $typeTag
sspmod_core_Auth_Process_StatisticsWithAttribute::$typeTag = 'saml20-idp-SSO' |
|
private |
The documentation for this class was generated from the following file: