App Install Oauth redirect_uri pointing to Google

Solved

App Install Oauth redirect_uri pointing to Google

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.

Found the issue in my case. Maybe useful to others. 
I'm hosting the app on Digital Ocean, and the `host` environment variable was still pointing to the default `google.com` in this case. 🤦🏻‍♂️

View solution in original post

Reply 1 (1)

luistmartins
Shopify Partner
21 2 2

This is an accepted solution.

Found the issue in my case. Maybe useful to others. 
I'm hosting the app on Digital Ocean, and the `host` environment variable was still pointing to the default `google.com` in this case. 🤦🏻‍♂️