class ServerVariableLookup in LDAP Single Sign On 8.4
Same name in this branch
- 8.4 src/ServerVariableLookup.php \Drupal\ldap_sso\ServerVariableLookup
- 8.4 tests/modules/ldap_sso_dummy_ldap/src/ServerVariableLookup.php \Drupal\ldap_sso_dummy_ldap\ServerVariableLookup
Helper function to make dummy data available in functional tests.
Hierarchy
- class \Drupal\ldap_sso\ServerVariableLookup implements ServerVariableLookupInterface
Expanded class hierarchy of ServerVariableLookup
1 string reference to 'ServerVariableLookup'
1 service uses ServerVariableLookup
File
- src/
ServerVariableLookup.php, line 10
Namespace
Drupal\ldap_ssoView source
class ServerVariableLookup implements ServerVariableLookupInterface {
/**
* {@inheritdoc}
*/
public function getAuthenticationNameFromServer(?string $variable) : ?string {
$remote_user = NULL;
if (isset($_SERVER[$variable])) {
$remote_user = $_SERVER[$variable];
}
return $remote_user;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ServerVariableLookup:: |
public | function |
Get authentication name from override or server variable. Overrides ServerVariableLookupInterface:: |