You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 19, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: config-templates/processFilterConfigurations-example.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -166,7 +166,7 @@ Example how to enable filter AttributeMap:
166
166
Filter is intended to extract an attribute specified by set of keys forming the chain of keys in the `$request` variable into the configured destination attribute.
167
167
168
168
Configuration options:
169
-
*`attr_name`: specifies attribute name, into which the extracted value will be stored
169
+
*`destination_attr_name`: specifies attribute name, into which the extracted value will be stored
170
170
*`request_keys`: string, which contains a semicolon (`;`) separated chain of keys that are examined in the state. Numeric keys are automatically treated as array indexes. For instance, value `'saml:AuthenticatingAuthority;0'` will be treated as code `$request['saml:AuthenticatingAuthority'][0]`. In case of this value being empty, exception is thrown. Otherwise, extracted value is stored into the configured destination attribute.
171
171
*`fail_on_nonexisting_keys`: `true` or `false`, specifies if in case of missing key in the request variable the filter should terminate with an exception or not
172
172
*`default_value`: array, which will be set as default value, if the configured keys did not lead to value
@@ -175,10 +175,10 @@ Configuration options:
175
175
// EXTRACT AUTHENTICATING ENTITY INTO authenticating_idp attribute
@@ -75,9 +75,7 @@ public function process(&$request)
75
75
}
76
76
if (!array_key_exists($key, $value)) {
77
77
Logger::warning(
78
-
self::DEBUG_PREFIX . 'Cannot find key \'' .
79
-
$key . '\' in the supposed path towards the value. Did you configure the right path of keys ' .
80
-
'to extract it?'
78
+
self::DEBUG_PREFIX . 'Cannot find key \'' . $key . '\' in the supposed path towards the value. Did you configure the right path of keys to extract it?'
81
79
);
82
80
if ($this->failOnNonExistingKey) {
83
81
thrownewException(self::DEBUG_PREFIX . 'Specified chain of keys does not exist');
@@ -99,9 +97,9 @@ public function process(&$request)
self::DEBUG_PREFIX . 'Invalid configuration: no attributes configured for ' . 'extracting UID. Use option \'' . self::UID_ATTRS . '\' to configure list of attributes, ' . 'that should be considered as IDs for a user'
63
+
self::DEBUG_PREFIX . 'Invalid configuration: no attributes configured for extracting UID. Use option \'' . self::UID_ATTRS . '\' to configure list of attributes, that should be considered as IDs for a user'
self::DEBUG_PREFIX . 'Invalid configuration: no attribute containing IDP ' . 'ID has been configured. Use option \'' . self::IDP_ID_ATTR . '\' to configure the name of the ' . 'attribute, that has been previously used in the configuration of filter \'perun:ExtractIdpEntityId\''
69
+
self::DEBUG_PREFIX . 'Invalid configuration: no attribute containing IDP ID has been configured. Use option \'' . self::IDP_ID_ATTR . '\' to configure the name of the attribute, that has been previously used in the configuration of filter \'perun:ExtractIdpEntityId\''
if (empty($this->registerUrl) && empty($this->callbackParameterName) && empty($this->perunRegisterUrl)) {
76
76
thrownewException(
77
-
self::DEBUG_PREFIX . 'Invalid configuration: no URL where user should register for the ' . 'account has been configured. Use option \'' . self::REGISTER_URL . '\' to configure the URL and ' . 'option \'' . self::CALLBACK_PARAMETER_NAME . '\' to configure name of the callback parameter.
77
+
self::DEBUG_PREFIX . 'Invalid configuration: no URL where user should register for the account has been configured. Use option \'' . self::REGISTER_URL . '\' to configure the URL and option \'' . self::CALLBACK_PARAMETER_NAME . '\' to configure name of the callback parameter.
78
78
. If you wish to use the Perun registrar, use the option \'' . self::PERUN_REGISTER_URL . '\'.'
79
79
);
80
80
}
@@ -92,10 +92,10 @@ public function process(&$request)
92
92
}
93
93
}
94
94
if (empty($uids)) {
95
-
thrownewException(self::DEBUG_PREFIX . 'missing at least one of mandatory attributes [' . implode(
self::DEBUG_PREFIX . 'Perun user with identity/ies: ' . implode(',', $uids)
131
-
. ' has been found. Setting user ' . $user->getName() . ' with id: ' . $user->getId() . ' to the request.'
128
+
self::DEBUG_PREFIX . 'Perun user with identity/ies: \'' . $logUids . '\' has been found. Setting user ' . $user->getName() . ' with id: ' . $user->getId() . ' to the request.'
0 commit comments