New Shopify Certification now available: Liquid Storefronts for Theme Developers

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!