final class RemoteUserIdentitySource (View source)

Reads the user the web server or an authenticating proxy signed in, from the remote_user settings. A server variable is set by the web server itself; a header is believed only from an address in remote_user.trusted_proxies.

Constants

private MAX_USERNAME_LENGTH

private MAX_FULLNAME_LENGTH

Methods

__construct(ConfigurationInterface $config, array $server, LoggerInterface $logger)

No description

bool
isEnabled()

No description

identity()

The signed-in user, or null when the feature is off, nobody is signed in, or the value cannot be trusted or used as a username.

Details

__construct(ConfigurationInterface $config, array $server, LoggerInterface $logger)

No description

Parameters

ConfigurationInterface $config
array $server

The request's server variables ($_SERVER)

LoggerInterface $logger

bool isEnabled()

No description

Return Value

bool

RemoteUserInfo|null identity()

The signed-in user, or null when the feature is off, nobody is signed in, or the value cannot be trusted or used as a username.

Return Value

RemoteUserInfo|null