Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When you make requests to the Eventbrite API using oauth2 access_toke…
…n 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?
- Loading branch information
754250d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @jamesmills this has actually broken the Google provider, doesn't play nice with the header!
754250d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guess we need to do some sort of Provider check to see if we need to add the header or not. Will look now.
754250d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hope this fixes it. #61
754250d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also breaks Oauth-Server is it expectes a token.
754250d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
754250d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am using the Oauth-Server package with close to the default configurations, when using the Oauth-Client to access a resources using the Oauth-Server@Resource.php, the exception regarding missing token is throw due to this header being sent without a token.
See this:
https://github.com/thephpleague/oauth2-server/blob/develop/src/League/OAuth2/Server/Resource.php#L262