Creating An App - 403 forbidden Authentication

Highlighted
New Member
1 0 0

Hi,

I'm going through step 2 of "authenticating with oauth": https://shopify.dev/tutorials/authenticate-with-oauth#step-2-ask-for-permission . 

 

On my main app page, I select "test your app" (screenshot 1), and then "install app" (screenshot 2). see 2 screenshots below. It then correctly transfers to the url specified in the "App URL" input box in the "App Setup" page.

screenshot1:

brandoncollab_1-1603085689836.png

 

screenshot2:

brandoncollab_2-1603085720897.png

Following the instructions in the docs linked above, I then change the url using window.location.href = to the url specified in the docs with the correct query params. I.e:

window.location.href=https://{shop}.myshopify.com/admin/oauth/authorize?client_id={api_key}&scope={scopes}&redirect_uri={redirect_uri}&state={nonce}&grant_options[]={access_mode} 

In my case, the "shop" is "collabsauce-test-store.myshopify.com.myshopify.com".

However, I get a 403 forbidden on that page:

 
 

Screen Shot 2020-10-18 at 10.42.47 PM.png

 

As an alternative, I tried doing an actual 301 Redirect from a backend server as well. However this does not work either.

 

 
 
 
 
 

Also, now for some reason, I can no longer log on to my partner account. I get this error:

 

 

brandoncollab_0-1603085584827.png

 

I can only log on using incognito mode. So i feel something is totally screwed up that I'm just not picking up on.

 

Is there something obvious that I'm missing?

0 Likes