App submission requirements / Test app on development store

Referring to this thread:

https://community.shopify.com/c/Shopify-APIs-SDKs/App-submission-got-rejected-due-quot-Use-OAuth-to-ask-for-scope/m-p/1056801#

  1. In “App setup” we have:
    1. Set the App URL to an endpoint we created.
    2. Added a redirect URL to the “Allowed redirection URL(s)” list to a 2nd endpoint we created.
  2. When we “Test app on development store” and click “Install app” the endpoint is called
  3. After clicking “Install app” our endpoint gets a call that looks like this:

{
“clientToken”: “”,
“hmac”: “”,
“shop”: “my-test-store.myshopify.com”,
“timestamp”: “”
}

  1. We then make a call to the authorization endpoint requesting scopes.

  2. Back in the shopify UI we see a RAW JSON

“You are being <a href="https://my-test-store.myshopify.com/admin/auth/login">redirected.”

Status Code 303
statusCode 200

However, the user cannot complete the login so the oauth flows do not complete. It stops at login. Our redirect URL never gets called.

Requirement: “Use OAuth to ask for scope permissions immediately after merchants add your app.”

Is our solution enough to satisfy the requirements for app submission? If not, what are the next steps to make this work?

Thank you!

1 Like