What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Not calling oAuth redirect uri

Not calling oAuth redirect uri

tharindu_97
Visitor
1 0 0

I called this url and it successfully load the shopify site. but not coming call to the redirect uri. does anyone has idea what is the issue ?

{shopifyurl}/admin/oauth/authorize?client_id=${consumerKey}&scope=read_orders&redirect_uri=${originOfMyApp}/api/shopify/CallbackUrl

Reply 1 (1)

Shabalinski___A
Shopify Partner
21 4 2

Hi, @tharindu_97!

 

I'm pretty sure it's because you didn't specify 'redirect_uri' correctly. Most likely there is an extra part there ('.../shopify/...').

 

Try to edit your 'redirect_uri' to `${your-app-origin}/api/${your-callback-url}`,
or just `${your-app-origin}/${your-callback-url}`.

 

NOTE: I want to point out that shopify doesn't allow apps that have the word 'shopify' in their auth callback URLs into the AppStore. You can only have one whitelisted URL with the word 'shopify' - the default one (https://{your-app-origin}/auth/shopify/callback)

 

If this didn't help you, please describe your problem in more detail, with code examples.

I hope it will be useful, have a nice day! 😉

Frontend (Shopify) Engineer at SpiralScout

  • - Was my reply helpful? Click Like to let me know!
  • - Was your question answered? Mark it as an Accepted Solution!