You are here

class ServerVariableLookup in LDAP Single Sign On 8.4

Same name in this branch
  1. 8.4 src/ServerVariableLookup.php \Drupal\ldap_sso\ServerVariableLookup
  2. 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

Expanded class hierarchy of ServerVariableLookup

1 string reference to 'ServerVariableLookup'
ldap_sso.services.yml in ./ldap_sso.services.yml
ldap_sso.services.yml
1 service uses ServerVariableLookup
ldap_sso.server_variable in ./ldap_sso.services.yml
Drupal\ldap_sso\ServerVariableLookup

File

src/ServerVariableLookup.php, line 10

Namespace

Drupal\ldap_sso
View 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