Definition at line 8 of file BaseNameIDGenerator.php.
◆ __construct()
sspmod_saml_BaseNameIDGenerator::__construct |
( |
|
$config, |
|
|
|
$reserved |
|
) |
| |
Initialize this filter, parse configuration.
- Parameters
-
array | $config | Configuration information about this filter. |
mixed | $reserved | For future use. |
Definition at line 50 of file BaseNameIDGenerator.php.
References $config, $state, array, and getValue().
51 parent::__construct(
$config, $reserved);
52 assert(
'is_array($config)');
54 if (isset(
$config[
'NameQualifier'])) {
55 $this->nameQualifier =
$config[
'NameQualifier'];
57 $this->nameQualifier = FALSE;
60 if (isset(
$config[
'SPNameQualifier'])) {
61 $this->spNameQualifier =
$config[
'SPNameQualifier'];
63 $this->spNameQualifier = TRUE;
◆ getValue()
sspmod_saml_BaseNameIDGenerator::getValue |
( |
array & |
$state | ) |
|
|
abstractprotected |
◆ process()
sspmod_saml_BaseNameIDGenerator::process |
( |
& |
$state | ) |
|
Generate transient NameID.
- Parameters
-
array | &$state | The request state. |
Definition at line 81 of file BaseNameIDGenerator.php.
References $format, $nameId, $nameQualifier, $spNameQualifier, getValue(), and SimpleSAML\Logger\warning().
82 assert(
'is_array($state)');
83 assert(
'is_string($this->format)');
86 if ($value === NULL) {
90 $nameId = new \SAML2\XML\saml\NameID();
93 if ($this->nameQualifier === TRUE) {
94 if (isset(
$state[
'IdPMetadata'][
'entityid'])) {
99 } elseif (is_string($this->nameQualifier)) {
103 if ($this->spNameQualifier === TRUE) {
104 if (isset(
$state[
'SPMetadata'][
'entityid'])) {
109 } elseif (is_string($this->spNameQualifier)) {
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
getValue(array &$state)
Get the NameID value.
◆ $format
sspmod_saml_BaseNameIDGenerator::$format |
|
protected |
◆ $nameQualifier
sspmod_saml_BaseNameIDGenerator::$nameQualifier |
|
private |
◆ $spNameQualifier
sspmod_saml_BaseNameIDGenerator::$spNameQualifier |
|
private |
The documentation for this class was generated from the following file: