Cannot obtain OAuth access_token for custom one-off app

Highlighted
Shopify Partner
9 0 9

Following this guide 

 

1. Created a custom app with the following:

App URL: https://otg.foodtron9000.com/app/index

Whitelisted redirection URL(s): https://otg.foodtron9000.com/api/shopify/install-granted

 

2. Generate install link

https://offthegriddle.myshopify.com/admin/oauth/install_custom_app?client_id=659bffe81b3c4d13f9130bc...

 

3. Navigate to link in browser

First issue: The Whitelisted redirect URL is not honored. Rather, the App URL is being used in this OAuth step.

incorrect_redirect_location.png

 

Second issue: The location being redirect to doesn't include the 'code' query parameter. Thus Step 3 of the OAuth guide cannot be completed and an access_token cannot be requested.

no_oauth_code.png

 

Is there a different flow for custom apps? How can I work around this to begin making authenticated requests?

0 Likes
Highlighted
Shopify Staff
Shopify Staff
1040 140 165

Hey @chrisandrewca,

 

Were you able to make any progress on this?

 

First issue: The Whitelisted redirect URL is not honored. Rather, the App URL is being used in this OAuth step.

Your app will need to supply the redirect URL, and it should be whitelisted in the app setting. I.e. whitelisting the URL doesn't create the redirect.

 

If you're still stuck please regenerate the install link and shoot me a direct message.

 

0 Likes