amzn / selling-partner-api-models

This repository contains OpenAPI models for developers to use when developing software to call Selling Partner APIs.
Apache License 2.0
595 stars 730 forks source link

OAuth for Amazon Seller Central is not authorizing and redirecting back to redirect_url #2088

Closed harshgour closed 2 years ago

harshgour commented 2 years ago

Our application uses SP-API

This is dummy url - https://sellercentral.amazon.in/apps/authorize/confirm/amzn1.sp.solution.b0a3b81a-2003-4b3d-b53e-442a44d2a724?redirect_uri=&amazon_state=MTYzODQ1NzQxNjUxNmpu77-9XSdLbe-_vV_vv71h77-9HSbvv73vv71lFO-_vXTvv70H77-977-90ZDvv73vv71US1Hvv73vv70H77-9asuLfjvvv701C--_vXDvv71IOx1cSO-_ve-_ve-_vVsS77-9QkE2Elo%3D&state=am5fgl71523&version=beta

Here when we redirect for authorization completion. It gets stuck on this page image

After refreshing it multiple times, then it hits the redirect_url. It works sometimes in one go, and manier times we need to refresh it again and again to authorize.

this is not the behaviour described in the documentation.

parvathm commented 2 years ago

Hi,

Can you please open a support with urls you are using and workflow you are following? that will help us to understand better and find the root cause quickly.

Thanks, Parvathm. Selling Partner API Developer Support.

harshgour commented 2 years ago

Hey @parvathm ,

Thanks for so fast reply. What the issue here is -

When we go for authorizing the app (consent) on sellercentral using the URL and then Approves it from sellercentral. It redirects us back to callback_url and then again when we call amazon sellercentral url back. On the confirmation page it gets stuck. Being a developer when i traced this issue. Its because there are two network calls happening on sellercentral page for authorizing which sometimes doesnot happen.

image

These calls are supposed to be made in order to authorize the application, but sometimes these are not made and it gets stuck on this page=> image

And this is because, it gets stuck on the page and we need to refresh it again for that network points are hit. When authorization happens then only it redirects us back to our application.

If anything remains unclear from my part, please ask me. We are facing this issue and it is really big for us now and needs to be resolved asap.

Can you help us with this issue asap?

github-actions[bot] commented 2 years ago

This is a very old issue that is probably not getting as much attention as it deserves. We encourage you to check if this is still an issue after the latest release and if you find that this is still a problem, please feel free to open a new issue and make a reference to this one.