yii2-oauth2-server
yii2-oauth2-server copied to clipboard
verifyResourceRequest always returns null
Hi, Please update the method in Server.php file with the following:
public function verifyResourceRequest(\OAuth2\RequestInterface $request = null, \OAuth2\ResponseInterface $response = null, $scope = null)
{
if($request === null) {
$request = $this->module->getRequest();
}
return parent::verifyResourceRequest($request, $response, $scope);
}
Currently it is:
public function verifyResourceRequest(\OAuth2\RequestInterface $request = null, \OAuth2\ResponseInterface $response = null, $scope = null)
{
if($request === null) {
$request = $this->module->getRequest();
}
parent::verifyResourceRequest($request, $response, $scope);
}
so irrespective of value it always returns null
httpd 2.4.x , .htaccess add CGIPassAuth on。or RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}]