question

LeeMorgan avatar image
LeeMorgan asked ·

Clover OAuth redirecting to home page (path: "/") rather than the redirect_uri specified

I am working in the sandbox right now. On my computer, the OAuth process goes perfectly fine while using my localhost:8080. However, when I push it to my website, it isn't working.


After "the client" logs into their account and then chooses a merchant, it simply redirects back to the home page with no data from Subline about the OAuth process. I have no idea what is going on here. I have confirmed that both the code on the site and on my local machine are identical. Everything that is different is in an environment variable, and I have double/triple checked them.


Any help is greatly appreciated.

OAuth
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

LeeMorgan avatar image
LeeMorgan answered ·

As sometimes happens, it seems to have magically fixed itself. I don't know if something was wrong on Clover's end for a while, or if I fixed something without realizing it, but it is working now. Thanks for your quick response.


For reference, yes that is exactly what I was doing. When I went to test on my machine or on the website, I would just change the address of the sandbox app. Pretty much exactly like what you wrote.

Share
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

greg avatar image
greg answered ·

What Site URL have you specified on the sandbox dashboard? Something like http://127.0.0.1:8000/oauth_callback/ for the local app and then changed it to http://www.example.com/oauth_callback/ for the deployment?

Share
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community