Oauth error invalid_request: The redirect_uri is not whitelisted

Solved
IuriMoura
New Member
4 0 0


I'm creating my APP on shopify but the error Oauth error invalid_request: The redirect_uri is not whitelisted is happening when installing

I have all of these URLs listed in my app:

https://app.emanda.com.br/shopify/cadastro/
https://app.emanda.com.br/

The URL of my APP is https://app.emanda.com.br/shopify/cadastro/

The Url that is presenting the error is

https://emandadesenvolvimento.myshopify.com/admin/oauth/request_grant?client_id=d58ee324fa8c9ae98905...

I don't know where else to look for the error, does anyone have any suggestions?

0 Likes
Greg_Kujawa
Shopify Partner
1016 83 226

This is an accepted solution.

Your redirect URI appears to include a specific URL path and a PHP page extension. All you need is a shorter version. Like https://thewebsite.com or https://thewebsite.com/path And ensure that the redirect URI exactly matches what you have defined in the app as whitelisted redirect points.

IuriMoura
New Member
4 0 0

Tnks @Greg_Kujawa your suggestion solved our problem

0 Likes
rony36
New Member
2 0 0

Not sure what is the problem with my app.

In App setting defined redirection URL and same URL is presented in OAuth URL.

Screen Shot 2021-01-24 at 3.08.44 PM.png

 

Screen Shot 2021-01-24 at 3.09.39 PM.pngCould you please help me to resolve this issue?

0 Likes
talalbsse
New Member
2 0 0

Hi,

Was your problem resolved? I am also having exactly the same problem.

 

regards.

Talal

0 Likes
Albume
New Member
1 0 2
Matty3
Tourist
11 0 1

Same for me. Did you manage to get your issue sorted in the end? Thanks

0 Likes
talalbsse
New Member
2 0 0

HI,

I managed to resolve this issue in the end. This issue has literal meaning. Basically, the exact URL needs to be added to the whitelisted section. 

0 Likes
mxie
New Member
1 0 0

having the same issue too

 

I tried adding these to Allowed Redirection URLs in App Setup:

```

https://0dac1902ba96.ngrok.io/auth/callback

https://tutorial-store-mx.myshopify.com/admin/oauth/authorize?client_id=cb02ce7a4c7655a4adfdd2bedb77...

```

 

All of which still gave the same error:

> Oauth error invalid_request: The redirect_uri is not whitelisted

 

What am I missing?

0 Likes
Prajwal_Adhav
New Member
2 0 0

https://403d432e76bb.ngrok.io/?shop=sample-embedded-app-xyz.myshopify.com was my uri path it should be exact as u have stated in your app setup page

Prajwal_Adhav_0-1618400945472.png

Prajwal_Adhav_1-1618400960490.png

if this does not help check your api key are matching in app as well as your development environment (mine is Visual studio code)

Hope this information helps bcoz this is a pain in a**.

 

0 Likes