Focuses on API authentication, access scopes, and permission management.
Built a custom Python/Django app. Using the install link in the Partners dashboard to install the app works fine. However, using the permission link doesn't. The permission link is of the following format: https://SHOP-NAME.myshopify.com/admin/oauth/authorize?client_id=API-KEY&scope=SCOPES&redirect_uri=WHITELISTED-URL
Any Python people seen this?
I cannot use the install url in the Partners dashboard as I cannot attach scopes to it - unless I'm missing something.
Any help would be much appreciated.
Hi Stefchrono,
It's possible that this issue is not related to Python, but more to do with how Auth and permissions are set up. Some things you can check:
Double-Check App Settings: Go through your app settings in the Shopify Partners dashboard to confirm the API key, whitelisted redirection URLs, and scopes.
URL Encoding: Ensure that the permission URL is correctly encoded, especially if your scopes or redirect URIs contain characters that need encoding.
Error Handling: Modify your app to handle and display errors during the OAuth process. This can provide more insight into where the process is failing.
Debugging: Use logging in your Django app to log the OAuth process, especially the part where your app receives the callback from Shopify. This can help identify if the issue is with the URL formation or with handling the callback.
Manual URL Construction: As a workaround, you can manually construct the install URL by appending the necessary scopes to it. It's less elegant but can serve as a temporary solution and help to identify where the issue is.
Hope this helps,
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Hi, I get same problem, please help me!!