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
James Mills 2014-02-04 10:04:08 +04:00
parent b5aa8a6262
commit 754250d3af
1 changed files with 1 additions and 0 deletions

View File

@ -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;