[App Rejection] Automatic tests not passing

Solved

[App Rejection] Automatic tests not passing

toobiza
Shopify Partner
35 5 7

During last days, our app is getting rejected by the automated test, see their message below.

 

The messages are bit confusing for two reasons. First the same explanation is given for both rejection requirements below. Also, the reason is mentioning a path for which we never redirect to as we never redirect to the root, we always redirect "auth" related paths as specified by the tuto here 

 

For context, 

  1.  We always check the HMAC as specified here and here
  2. We set the security header for the iFrame like here
  3. The installation test locally did not have any issue
  4. We went through all previous posts in the forum but still were not able to fix it

 

Are we missing something? Can someone please help?

 

Thanks in advance

 

[Rejection message from Shopify]

```

Requirements that must be met before initial screening

  1. App must set security headers to protect against clickjacking.
    Your app does not request installation on the shop immediately after clicking "add app". Apps must ask a shop for access when being installed on a shop for the first time, as well as when they are being reinstalled after having been removed. During install or reinstall we expected OAuth to be initiated at https://cambridgetestshop.myshopify.com/admin/oauth/request_grant but was redirected to https://cambridgetestshop.myshopify.com/admin/apps/7e43b55c76c07b51ccb5e0147b85daf0/?hmac=8df4b10cd5.... Learn more about authentication in our developer documentation
  2. App must verify the authenticity of the request from Shopify.
    Your app does not request installation on the shop immediately after clicking "add app". Apps must ask a shop for access when being installed on a shop for the first time, as well as when they are being reinstalled after having been removed. During install or reinstall we expected OAuth to be initiated at https://cambridgetestshop.myshopify.com/admin/oauth/request_grant but was redirected to https://cambridgetestshop.myshopify.com/admin/apps/7e43b55c76c07b51ccb5e0147b85daf0/?hmac=8df4b10cd5.... Learn more about authentication in our developer documentation

```

Accepted Solution (1)

Thomas_Lang1
Shopify Partner
238 6 56

This is an accepted solution.

Hi!

 

We had this issue with one of our apps too, after add app button was clicked we redirected from our application to our authentication server first which would then start the oauth process.

 

Shopify does not like this, so maybe you are redirecting somewhere as well, could also mean redirecting to another route in your application.

 

you will need to make sure you go directly to oauth from the route that is being called to start the install process.

Software Developer | Owner of Tom IT - We build shopify apps
Marketplace Order Connector | Amazon bol.com & Walmart DSV
Order Related Documents | Print documents, Email document &Autoprint
Blog Product Spotlight | Add products to your blog articles!

View solution in original post

Reply 1 (1)

Thomas_Lang1
Shopify Partner
238 6 56

This is an accepted solution.

Hi!

 

We had this issue with one of our apps too, after add app button was clicked we redirected from our application to our authentication server first which would then start the oauth process.

 

Shopify does not like this, so maybe you are redirecting somewhere as well, could also mean redirecting to another route in your application.

 

you will need to make sure you go directly to oauth from the route that is being called to start the install process.

Software Developer | Owner of Tom IT - We build shopify apps
Marketplace Order Connector | Amazon bol.com & Walmart DSV
Order Related Documents | Print documents, Email document &Autoprint
Blog Product Spotlight | Add products to your blog articles!