Skip to content
This repository has been archived by the owner on May 31, 2019. It is now read-only.

Oauth error invalid_request: The redirect_uri is not whitelisted #109

Closed
artem-alek opened this issue Apr 12, 2018 · 11 comments
Closed

Oauth error invalid_request: The redirect_uri is not whitelisted #109

artem-alek opened this issue Apr 12, 2018 · 11 comments

Comments

@artem-alek
Copy link

After following all the directions and use ngrok. I have the install page showing but after entering my shop url I get a opps something went wrong "Oauth error invalid_request: The redirect_uri is not whitelisted". I am unable to get past the install page. I have checked all my redirect in Shopify partner and all of it is following '{HOST}/shopify/auth/callback'. Anyone else have had issues with this or know what the next step fix is?

@roeku
Copy link

roeku commented Apr 12, 2018

I just installed it too. It looked like I had a "/" too much in the redirect_uri.
So instead of { HOST }/auth/shopify/callback it was { HOST }//auth/shopify/callback
If you remove one of the / in the URL the app will install. Not sure where the extra / is coming from yet.

@artem-alek
Copy link
Author

I double checked my call and I dont think Im having a extra "/". I am getting a new error and maybe this is the cause. Im getting a 404 Error GET /favicon.ico not found.

@vmundhra
Copy link

@artem-alek The Whitelisted redirection URL(s) should be { HOST }/auth/shopify/callback and not {HOST}/shopify/auth/callback. Note the 'auth' is before 'shopify' in the url.

@artem-alek
Copy link
Author

@vmundhra I double checked and added that path too on the whitelist of partners, and still having the issue. I noticed that my web pack is returning /shopify/auth?shop={HOST} and is getting a 304. Not sure what else I can do.

@leonanluppi
Copy link

Any update about that?

Same issue here

@juanpprieto
Copy link

juanpprieto commented Apr 27, 2018

Same issue here, im afraid. Tried /auth before and after /shopify on the callback url without luck.

I'm seeing: redirect_uri=https%3A%2F%2Flocalhost%2Fshopify%2Fauth%2Fcallback

However, my app was setup with a public address https://xxx.localtunnel.me/

UPDATE
All working now, I had not changed SHOPIFY_APP_HOST @ .env from https://localhost to https://xxx.localtunnel.me

I also confirm that the correct callback url to be whitelisted is: {HOST}/shopify/auth/callback

@leonanluppi
Copy link

@juanpprieto

I solved this issue on shopify-express package. See: Shopify/shopify-express#82

@artem-alek
Copy link
Author

@juanpprieto yes my issue was with the .env too. I had the correct address, but I forgot to add https:// in front of the url. So my SHOPIFY_APP_HOST is now "https://{HOST}"

@smudge1307
Copy link

Is the problem that it should be 'https' but you use 'http'?

@smudge1307
Copy link

@juanpprieto yes my issue was with the .env too. I had the correct address, but I forgot to add https:// in front of the url. So my SHOPIFY_APP_HOST is now "https://{HOST}"

Is the problem that it should be 'https' but you use 'http'?

@nwtn
Copy link
Contributor

nwtn commented May 31, 2019

Closing because this project is now deprecated.

@nwtn nwtn closed this as completed May 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants