Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

verifyResourceRequest always returns null #125

Open
shayanhusaini opened this issue Mar 2, 2017 · 1 comment
Open

verifyResourceRequest always returns null #125

shayanhusaini opened this issue Mar 2, 2017 · 1 comment

Comments

@shayanhusaini
Copy link

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

@froying
Copy link

froying commented Sep 19, 2017

httpd 2.4.x , .htaccess add CGIPassAuth on。or RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants