public authenticate ( AppserverIo\Psr\Servlet\Http\HttpServletResponseInterface $servletResponse ) : boolean | ||
$servletResponse | AppserverIo\Psr\Servlet\Http\HttpServletResponseInterface | The servlet response |
return | boolean | TRUE when non-null values were or have been established as the values returned by getRemoteUser, else FALSE |
public function authenticate(HttpServletResponseInterface $servletResponse)
{
// load the authentication manager and try to authenticate this request
/** @var \AppserverIo\Appserver\ServletEngine\Authentication\AuthenticationManagerInterface $authenticationManager */
if ($authenticationManager = $this->getAuthenticationManager()) {
return $authenticationManager->handleRequest($this, $servletResponse);
}
// also return TRUE if we can't find an authentication manager
return true;
}