-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OAuthException: Response body is incorrect. #327
Comments
I am also getting the same issue for facebook login |
Hello friend, I solve my problem by doing facebook login by hand, example:
|
@angelique360 Thanks a lot for sharing your solution. I am going to try it. |
I have the same problem...
This class use TOKEN_REGEX for extract the token but now the respose is a Json. https://developers.facebook.com/docs/apps/changelog
|
I had the same problem. So basically response from facebook is now coming as JSON. The solution I have derived is to write our own custom facebook Api like below Create the class
And use it in our oauth config as below //for facebook authentication
|
@Prakash-Thete Your solution doesn't seem to be working for me, i am unable to over-ride the API? any guesses why? |
Instead of overriding whole of FacebookApi class I searched for the way to replace It was a bit odd as class that needs to have method overridden OverridenFacebookApi.groovy
Then had to make sure OverridenFacebookClient.groovy
Finally had to reference it in Config.groovy
|
Awesome workaround @ivarprudnikov ! Just a fix. On OverridenFacebookClient.internalInit you miss the context param. It should be:
|
After upgrading pac4j (#416), the Facebook API supported now is 2.11 |
Hi, The plugin throws the following error when trying to sign in with facebook.
error:500,
message:org.scribe.exceptions.OAuthException: Response body is incorrect. Can't extract a token from this: '{"access_token":"EAAOWKGC6MDcBAB9ZAka1zEc1","token_type":"bearer"}', error_description:org.scribe.exceptions.OAuthException: Response body is incorrect. Can't extract a token from this: '{"access_token":"EAAOWKGC6M","token_type":"bearer"}', error_code:OAuthException
The text was updated successfully, but these errors were encountered: