AppserverIo\Appserver\ServletEngine\Http\Request::getRemoteUser PHP Méthode

getRemoteUser() public méthode

Return's the login of the user making this request, if the user has been authenticated, or null if the user has not been authenticated. Whether the user name is sent with each subsequent request depends on the browser and type of authentication. Same as the value of the CGI variable REMOTE_USER.
public getRemoteUser ( ) : AppserverIo\Lang\String | null
Résultat AppserverIo\Lang\String | null A string specifying the login of the user making this request, or null if the user login is not known
    public function getRemoteUser()
    {
        if ($userPrincipal = $this->getUserPrincipal()) {
            return $userPrincipal->getName();
        }
    }