Allow full name to be retrieved by SSO ReverseProxy
Expand on #4585 by also getting the user's full name from the Reverse Proxy: If a ReverseProxy provides more than REMOTE_USER, such as email, it might as well also provide the user's full name.
This commit is contained in:
@@ -149,6 +149,15 @@ class RequestTest extends Base
|
||||
$this->assertEquals('test@example.com', $request->getRemoteEmail());
|
||||
}
|
||||
|
||||
public function testGetRemoteName()
|
||||
{
|
||||
$request = new Request($this->container, array(), array(), array(), array(), array());
|
||||
$this->assertEmpty($request->getRemoteName());
|
||||
|
||||
$request = new Request($this->container, array(REVERSE_PROXY_FULLNAME_HEADER => 'Test Name'), array(), array(), array(), array());
|
||||
$this->assertEquals('Test Name', $request->getRemoteName());
|
||||
}
|
||||
|
||||
public function testGetQueryString()
|
||||
{
|
||||
$request = new Request($this->container, array(), array(), array(), array(), array());
|
||||
|
||||
Reference in New Issue
Block a user