fkooman/php-oauth-client — pull request #13 by yadnad (2013-08-20 16:12:22+00:00)
Title: Make token_type optional in Acces Token Response

Ran into an issue trying to use the client with Salesforce. They don't include the token_type parameter in their access token response even though it's required per the RFC. We'd like to make it an optional parameter, defaulting to "bearer" if a token_type is not provided.

Here's the Salesforce docs showing what parameters are sent back: http://help.salesforce.com/help/doc/en/remoteaccess_oauth_web_server_flow.htm#grant_access_token

I inquired about this on their forums and was told I'd need to use SOAP to authenticate if token_type was required :(