Definition at line 9 of file PersistentNameID.php.
◆ __construct()
sspmod_saml_Auth_Process_PersistentNameID::__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 PersistentNameID.php.
References $config, format, and SAML2\Constants\NAMEID_PERSISTENT.
30 parent::__construct(
$config, $reserved);
31 assert(
'is_array($config)');
35 if (!isset(
$config[
'attribute'])) {
38 $this->attribute =
$config[
'attribute'];
Write to Excel2007 format
const NAMEID_PERSISTENT
Persistent NameID format.
◆ getValue()
sspmod_saml_Auth_Process_PersistentNameID::getValue |
( |
array & |
$state | ) |
|
|
protected |
Get the NameID value.
- Parameters
-
array | $state | The state array. |
- Returns
- string|null The NameID value.
Definition at line 48 of file PersistentNameID.php.
References $idpEntityId, $spEntityId, SimpleSAML\Utils\Config\getSecretSalt(), and SimpleSAML\Logger\warning().
51 if (!isset(
$state[
'Destination'][
'entityid'])) {
57 if (!isset(
$state[
'Source'][
'entityid'])) {
63 if (!isset(
$state[
'Attributes'][$this->attribute]) || count(
$state[
'Attributes'][$this->attribute]) === 0) {
65 'Missing attribute '.var_export($this->attribute,
true).
66 ' on user - not generating persistent NameID.' 70 if (count(
$state[
'Attributes'][$this->attribute]) > 1) {
72 'More than one value in attribute '.var_export($this->attribute,
true).
73 ' on user - not generating persistent NameID.' 77 $uid = array_values(
$state[
'Attributes'][$this->attribute]);
82 'Empty value in attribute '.var_export($this->attribute,
true).
83 ' on user - not generating persistent NameID.' 90 $uidData =
'uidhashbase'.$secretSalt;
93 $uidData .= strlen($uid).
':'.$uid;
94 $uidData .= $secretSalt;
96 return sha1($uidData);
static getSecretSalt()
Retrieve the secret salt.
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
◆ $attribute
sspmod_saml_Auth_Process_PersistentNameID::$attribute |
|
private |
The documentation for this class was generated from the following file: