Definition at line 9 of file AttributeNameID.php.
◆ __construct()
sspmod_saml_Auth_Process_AttributeNameID::__construct |
( |
|
$config, |
|
|
|
$reserved |
|
) |
| |
Initialize this filter, parse configuration.
- Parameters
-
array | $config | Configuration information about this filter. |
mixed | $reserved | For future use. |
- Exceptions
-
Definition at line 28 of file AttributeNameID.php.
References $config.
30 parent::__construct(
$config, $reserved);
33 if (!isset(
$config[
'Format'])) {
36 $this->format = (string)
$config[
'Format'];
38 if (!isset(
$config[
'attribute'])) {
41 $this->attribute = (string)
$config[
'attribute'];
◆ getValue()
sspmod_saml_Auth_Process_AttributeNameID::getValue |
( |
array & |
$state | ) |
|
|
protected |
Get the NameID value.
- Parameters
-
array | $state | The state array. |
- Returns
- string|null The NameID value.
Definition at line 51 of file AttributeNameID.php.
References SimpleSAML\Logger\warning().
54 if (!isset(
$state[
'Attributes'][$this->attribute]) || count(
$state[
'Attributes'][$this->attribute]) === 0) {
56 'Missing attribute '.var_export($this->attribute,
true).
57 ' on user - not generating attribute NameID.' 61 if (count(
$state[
'Attributes'][$this->attribute]) > 1) {
63 'More than one value in attribute '.var_export($this->attribute,
true).
64 ' on user - not generating attribute NameID.' 68 $value = array_values(
$state[
'Attributes'][$this->attribute]);
73 'Empty value in attribute '.var_export($this->attribute,
true).
74 ' on user - not generating persistent NameID.' if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
◆ $attribute
sspmod_saml_Auth_Process_AttributeNameID::$attribute |
|
private |
The documentation for this class was generated from the following file:
- libs/composer/vendor/simplesamlphp/simplesamlphp/modules/saml/lib/Auth/Process/AttributeNameID.php