You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can get it working by changing $request to look for the AUTHORIZATION in ->$headers from ->server, i.e.,
public function getAccessTokenParameter(OAuth2_RequestInterface $request)
{
$headers = $request->headers('AUTHORIZATION');
By working, I mean the following returns a value for $access_token:
$bearer = new OAuth2_TokenType_Bearer();
$access_token = $bearer->getAccessTokenParameter($request);
My question-- am I implementing this incorrectly? Please note the following RewriteRule was added to .htaccess to allow for PHP parsing of Authorization other than Basic or Digest:
Unable to retrieve access_token using
getAccessTokenParameter
fromBearer.php
. For example, an HTTP POST with Header:is sent and a request is created:
Doing a var_dump of $request:
I can get it working by changing
$request
to look for theAUTHORIZATION
in->$headers
from->server
, i.e.,By working, I mean the following returns a value for
$access_token
:My question-- am I implementing this incorrectly? Please note the following RewriteRule was added to .htaccess to allow for PHP parsing of Authorization other than Basic or Digest:
The text was updated successfully, but these errors were encountered: