d
Topic
Posts:
1
May 23, 2013

Problem with OAUTH URL This post is outdated

I have an application that can handle one or several stores Shopify.

To accept my application I redirect the user to this link:

https://myshopify.com/admin/oauth/authorize/?client_id=2aaeaabf4a0a466311179256dfbdfee6&scope=read_customers,write_customers,read_orders,write_orders

If it is not logged in any Shopify store, he is redirected to this link:

http://www.shopify.com/login?redirect=oauth/authorize&client_id=2aaeaabf4a0a466311179256dfbdfee6&scope=read_customers,write_customers,read_orders,write_orders

The problem is that after the log Shopify redirects to this url:

https://example.myshopify.com/admin/oauth/authorize

And now the Shopify ignores my parameters (cliente_id, scope, etc.)

The result:

{"error":"invalid_request","error_description":"Could not find Shopify API application with api_key: "}
 

 

 

i
Replies
Rowan Member
Posts:
7
May 24, 2013

My guess is that this is just because it is much more likely that a Shopify user will be signed in to their store when installing your application, than not signed in:

Most people will discover and install your app through the Shopify App Store (from the Apps link in their Admin page) - it's only during the development stage that people will be more likely to install your app through it's own page (and might not be logged in).

Obviously, Shopify could fix this, but the quicker/easier work-around for you would be to ask the user to log in first.

Log in or sign up for an account to reply.

This thread has been closed! You will not be able to reply.