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, and getValue().
52 parent::__construct(
$config, $reserved);
55 if (isset(
$config[
'NameQualifier'])) {
56 $this->nameQualifier =
$config[
'NameQualifier'];
58 $this->nameQualifier =
false;
61 if (isset(
$config[
'SPNameQualifier'])) {
62 $this->spNameQualifier =
$config[
'SPNameQualifier'];
64 $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 82 of file BaseNameIDGenerator.php.
References $format, $nameId, $nameQualifier, $spNameQualifier, getValue(), and SimpleSAML\Logger\warning().
85 assert(is_string($this->format));
88 if ($value === null) {
92 $nameId = new \SAML2\XML\saml\NameID();
95 if ($this->nameQualifier ===
true) {
96 if (isset(
$state[
'IdPMetadata'][
'entityid'])) {
101 } elseif (is_string($this->nameQualifier)) {
105 if ($this->spNameQualifier ===
true) {
106 if (isset(
$state[
'SPMetadata'][
'entityid'])) {
111 } 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: