Commit ccaad468 by Alexander Makarov

Merge pull request #2668 from dizews/patch-1

Update HttpBearerAuth.php
parents 10f1283d 66315a2c
......@@ -46,7 +46,7 @@ class HttpBearerAuth extends Component implements AuthInterface
*/
public function handleFailure($response)
{
$response->getHeaders()->set('WWW-Authenticate', "Basic realm=\"{$this->realm}\"");
$response->getHeaders()->set('WWW-Authenticate', "Bearer realm=\"{$this->realm}\"");
throw new UnauthorizedHttpException('You are requesting with an invalid access token.');
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment