Example #1
0
 /**
  * Request the client sends authorization information.
  *
  * Call this method when a restful api client is not authorized.
  *
  * @todo
  * @param \Parest\Rest\Service\Http\Response $response
  * @param array                 $parameters
  */
 public function ask($response, $parameters = [])
 {
     $parameters = array_merge(['realm' => $this->_realm], $parameters);
     $response->setHeaderAppendParameters('WWW-Authenticate', $this->_authorizationType, $parameters);
 }