public function unauthenticated(ServerRequest $request, Response $response)
    {
        $Exception = new UnauthorizedException();
        $Exception->responseHeader($this->loginHeaders($request));
        throw $Exception;
    }
public function unauthenticated(ServerRequest $request, Response $response)
    {
        $Exception = new UnauthorizedException();
        $Exception->responseHeader($this->loginHeaders($request));
        throw $Exception;
    }
public function unauthenticated ( ServerRequest $ request , Response $ response ) { $ Exception = new UnauthorizedException ( ) ; $ Exception -> responseHeader ( $ this -> loginHeaders ( $ request ) ) ; throw $ Exception ; }
Handles an unauthenticated access attempt by sending appropriate login headers

@param \Cake\Http\ServerRequest $request A request object.
@param \Cake\Http\Response $response A response object.
@return void
@throws \Cake\Http\Exception\UnauthorizedException
Handles an unauthenticated access attempt by sending appropriate login headers