Https twice on my redirect_uri shopify when trying to authorize my application

Https twice on my redirect_uri shopify when trying to authorize my application

AnisBRANDLY
Shopify Partner
4 0 0

Hello everyone, 

 

I am facing an common Shopify OATH authorization error, red every topic on that and still not resolved it.

I have an oauth error invalid_request: The redirect_uri is not whitelisted. On my app setup page, i copied the links correctly, i have :

App URL : https://MYNGROK.ngrok.io/
Allowed redirection URL(s) : https://MYNGROK.ngrok.io/auth/callback

When I test this on any of my developpement stores, in the redirect_uri on the request i have :

redirect_uri=https%3A%2F%2Fhttps%3A%2F%2MYNGROK.ngrok.io%2Fauth%2Fcallback

I know that the problem comes from this; why do I have https%3A%2F twice ? And how can I resolve this ?

Thanks all!

Reply 1 (1)

Daniel153
Visitor
1 0 0

I had this same problem and in my case is because my environment variable where I set the ngrok url was https://mydomain.ngrok.io
but it should be just mydomain.ngrok.io, otherwise it adds https twice, but it depends a lot on how you generate those uris. Hope it helps