My app application was rejected, the feedback was due to OAuth's problem

Highlighted
New Member
4 0 0

demo.gif

At present, my app can be authorized normally in the test shop, but it is still rejected during the app review stage. What is the reason?

0 Likes
Highlighted
Shopify Partner
71 6 14

What was the reason given?

Was this helpful? Press like!
Did it fix the problem? Mark it as the solution for others!
Buy me a beer? Well, sure!
0 Likes
Highlighted
New Member
4 0 0

iwisher_0-1603780303614.png

It seems that my app url is filled in incorrectly:https://ztapi.myshopify.com/admin/oauth/request_grant?client_id={client_id}&state=111894_16&scope=re...

My purpose is to click on the download app to be able to enter the authorization interface through my link,What should I fill in the app url

0 Likes
Highlighted
New Member
4 0 0

https://ztapi.myshopify.com/admin

According to the feedback, the app url should not be limited to one shop. however I cannot submit it when I try to use {shop} here instead of 'ztapi'       o ..  o

0 Likes
Highlighted
Shopify Partner
71 6 14

Have another read of this tutorial https://shopify.dev/tutorials/authenticate-with-oauth 

{shop} is a variable that your app needs to fill in, its the permanent domain of the shop that is installing your app.

Was this helpful? Press like!
Did it fix the problem? Mark it as the solution for others!
Buy me a beer? Well, sure!
0 Likes
Highlighted
Trailblazer
173 13 28

This was confusing for me at first too, but Shopify appends a shop URL parameter to every URL request. So after someone clicks install on your app, you can grab the current shop origin from the query string using url params. 

0 Likes
Highlighted
New Member
4 0 0

I have multiple shops here, and I want to use this app to obtain order information. This behavior is actually done by calling the authorization interface in my own third-party software. In this case, what content should be filled in the app url, is it a link to my own app, or a splicing link of shopify

I'm wondering if my thinking is wrong O . O

0 Likes
Highlighted
Trailblazer
173 13 28

I'm not sure I understand what exactly your app is doing when someone arrives to the URL.

Put a different way though, if you create multiple development stores and then in your partner dashboard click on "install on this development store" for each one, does the app successfully install for that specific development store? That is how you will know if it's working properly, i.e., it's dynamically inserting the correct shop origin into your authorization URL without you hard-coding it. 

0 Likes