App Install Oauth redirect_uri pointing to Google

Solved
luistmartins
Shopify Partner
21 2 2

Working on a custom for a client, and seeing something I haven't come across so far.

I'm using the Custom distribution option, which gives you a URL the client can use to install the app on their store. However, when they do that, I get the error `Oauth error invalid_request: The redirect_uri is not whitelisted`, which turns out results from the fact that the `redirect_uri` is pointing to google, rather than the URLs configured on the app setup. I get something like this:

https://admin.shopify.com/store/store-name/oauth/authorize?client_id=dftgergegerertree&redirect_uri=...

 

Tried different browsers, always with the same result. 
Why would Shopify change the URL from the actual app URL to Google in install process?

Accepted Solution (1)
luistmartins
Shopify Partner
21 2 2

This is an accepted solution.

In this case issue was a ENV variable (host) still set to the default value `google.com`. Maybe helpful to someone facing a similar issue.

View solution in original post

Reply 1 (1)
luistmartins
Shopify Partner
21 2 2

This is an accepted solution.

In this case issue was a ENV variable (host) still set to the default value `google.com`. Maybe helpful to someone facing a similar issue.