Commit 66315a2c by Vladimir

Update HttpBearerAuth.php

typo fix
parent 10f1283d
......@@ -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