AppserverIo\Appserver\ServletEngine\Http\Request::getRemoteUser PHP Method

getRemoteUser() public method

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
return 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();
        }
    }