When you make requests to the Eventbrite API using oauth2 access_token you need to send an Authorization header field with value of Bearer otherwise you get error.
This is not needed for all the oauth stuff just the last call to the API to fetchUserDetails. I am not sure if this will brake other requests to other providers or if they will just ignore this extra header?1.0
parent
b5aa8a6262
commit
754250d3af
|
@ -171,6 +171,7 @@ abstract class IdentityProvider
|
|||
try {
|
||||
|
||||
$client = new GuzzleClient($url);
|
||||
$client->setDefaultOption('headers', array('Authorization' => 'Bearer'));
|
||||
$request = $client->get()->send();
|
||||
$response = $request->getBody();
|
||||
$this->cachedUserDetailsResponse = $response;
|
||||
|
|
Loading…
Reference in New Issue