Focuses on API authentication, access scopes, and permission management.
I am building a Shopify Public App for (it is going to be unlisted). It is not embedded (back-end only), written in C# using ASP.NET Core with ShopifySharp library. Currently, I encounter a problem with requesting scopes (read_products and read_inventory, to be exact). I pass them on to authorization URL, but they are not shown in the list of permissions requested by the app. In addition, response with access token has empty scopes and the token does not allow viewing required resources.
Here is the authorization URL (with some replaced values):
https://myshop.myshopify.com/admin/oauth/authorize?client_id=my_client_id&scope=read_products,read_inventory&redirect_uri=my_redirect_uri
A screenshot of installation from client perspective (nothing about products/inventory):
As far as I understand, TOML file configuration is not available for .NET-based projects, as Shopify CLI requires Node project. It was stated in the docs that manual auth code grant implementation is the alternative to using TOML.
Hi @kostyabek
Have you executed the "shopify app deploy" command
As I said in the post - this is a .NET project, not Node. Shopify CLI "shopify app deploy" command expects valid package.json file in execution directory.
I managed to solve this issue simply by re-creating my Shopify App. I am not sure why it worked.