Example #1
0
 /**
  * @param IHttpHeaders $headers
  * @param array $server
  */
 public function writeCommonAuthHeaders(IHttpHeaders $headers, array $server)
 {
     $auth = $this->findAuthHeader($server);
     if ($this->authIsValid($auth)) {
         $headers->set('authorization', $auth);
     }
 }
Example #2
0
 /**
  * @param IHttpHeaders $headers
  * @param $header
  */
 public function setHeader(IHttpHeaders $headers, $header)
 {
     $headers->set('authorization', $header);
 }