Skip to content
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

Amazon access token problem and fix #553

Open
egekhter opened this issue May 17, 2019 · 0 comments
Open

Amazon access token problem and fix #553

egekhter opened this issue May 17, 2019 · 0 comments
Labels

Comments

@egekhter
Copy link

[2019-05-16 21:54:33] local.INFO: OAuth\Common\Http\Exception\TokenResponseException: Unable to parse response. in /home/memorable/vendor/lusitanian/oauth/src/OAuth/OAuth2/Service/Amazon.php:74
Stack trace:
#0 /home/memorable/vendor/lusitanian/oauth/src/OAuth/OAuth2/Service/AbstractService.php(130): OAuth\OAuth2\Service\Amazon->parseAccessTokenResponse('\x1F\x8B\x08\x00\x00\x00\x00\x00\x00\x03L\xD4\xB7\xCE\xAC...')
#1 /home/memorable/app/controllers/user/UserLoginController.php(435): OAuth\OAuth2\Service\AbstractService->requestAccessToken('ANLdQgTbWizDNFl...')

The response from Amazon looked like this:
�ã��������L‘∑Œ¨f�E—˛>∆__$2å;¬�ÜúCÛâ4¿ês∞˝Ó�Ÿç€]�-ù?�í,+ñ�¨CSÙ?�

I updated the getAccessTokenEndpoint method and everything worked as expected:
From
return new Uri('https://www.amazon.com/ap/oatoken');'
to
return new Uri('https://api.amazon.com/auth/o2/token');

@tezrik tezrik added the bug label Sep 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants