oauth2-demo-php
oauth2-demo-php copied to clipboard
Scope Error - Undefined method getParameters()
I am passing a required scope to the :
public function verifyResourceRequest(OAuth2_RequestInterface $request, OAuth2_ResponseInterface $response, $scope = null)
like so :
$server->verifyResourceRequest($app['request'], $response, $scopeRequired)
And it is returning the following error :
Fatal error: Call to undefined method OAuth2\HttpFoundationBridge\Response::getParameter()
in path/to/src/OAuth2/Controller/ResourceController.php on line 50
The getParameters() is not in the HTTPFoundationalBridge class and is called in the /OAuth2/Controller/ResourceController.php on line 50 and 51.
Please help.