Ejemplo n.º 1
0
 /**
  * This method is called before any HTTP method and forces users to be authenticated
  *
  * @param RequestInterface $request
  * @param ResponseInterface $response
  * @return bool
  */
 function beforeMethod(RequestInterface $request, ResponseInterface $response)
 {
     $this->authBackend->authenticate($this->server, $this->getRealm());
 }
Ejemplo n.º 2
0
 /**
  * This method is called before any HTTP method and forces users to be authenticated
  *
  * @param string $method
  * @param string $uri
  * @throws Sabre\DAV\Exception\NotAuthenticated
  * @return bool
  */
 public function beforeMethod($method, $uri)
 {
     $this->authBackend->authenticate($this->server, $this->realm);
 }