🔍 OAuth Configuration Diagnostics
Status: ✅ Configuration OK
Configuration Details
{
"apiKey": "4869cc6b67... (configured)",
"apiSecret": "*** (configured)",
"scopes": "unauthenticated_write_checkouts,unauthenticated_read_checkouts,unauthenticated_read_content,unauthenticated_write_customers,unauthenticated_read_customers,unauthenticated_read_customer_tags,unauthenticated_read_metaobjects,unauthenticated_read_product_listings,unauthenticated_read_product_inventory,unauthenticated_read_product_pickup_locations,unauthenticated_read_product_tags,unauthenticated_read_selling_plans,unauthenticated_write_bulk_operations,unauthenticated_read_bulk_operations,unauthenticated_read_bundles,unauthenticated_read_shop_pay_installments_pricing,write_products,write_purchase_options,write_customers,write_orders,write_draft_orders,write_payment_customizations,read_customers,read_products,read_purchase_options,read_orders",
"appBaseUrl": "https://proxy.naturaldyestore.com",
"redirectUri": "https://proxy.naturaldyestore.com/auth",
"protocol": "HTTPS ✓",
"host": "proxy.naturaldyestore.com",
"xForwardedProto": "https",
"nodeEnv": "not set",
"issues": []
}
📝 Next Steps:
- Verify Redirect URI in Shopify Partners Dashboard:
Go to your app in Shopify Partners
Make sure this redirect URI is registered: https://proxy.naturaldyestore.com/auth
Important: The redirect URI must match exactly (including https:// and trailing slash if any)
- If you see "accounts.shopify.com refused to connect":
This usually means the OAuth request is being blocked. Common causes:
- Embedded App (iframe): The app is trying to open OAuth in an iframe, which Shopify blocks. The reinstall endpoint should automatically break out of the iframe.
- Browser extensions: Ad blockers or security extensions may block OAuth redirects. Try disabling them.
- Network/Firewall: Your network or firewall may be blocking connections to Shopify.
- Try direct URL: Copy the OAuth URL from server logs and open it directly in a new browser tab.
- Set APP_URL environment variable (optional but recommended):
APP_URL=https://proxy.naturaldyestore.com
This ensures consistent redirect URIs.
- Ensure HTTPS is enabled:
Shopify requires HTTPS for OAuth. If using a proxy (like ngrok or cloudflare), make sure it's configured correctly.
- Check environment variables:
Verify SHOPIFY_API_KEY and SHOPIFY_API_SECRET are set correctly.
- Test OAuth URL directly:
Check server logs for the OAuth URL and try opening it directly in your browser to see if it works outside of the app context.
🔧 Troubleshooting "accounts.shopify.com refused to connect":
- Check browser console: Open browser developer tools (F12) and check for any errors in the Console tab.
- Try in incognito/private mode: This will disable browser extensions that might be blocking the request.
- Check server logs: Look for the OAuth URL in server logs and verify it's correct.
- Verify shop domain: Make sure the shop domain is correct (format: shop-name.myshopify.com)
- Check redirect URI: Verify that the redirect URI matches exactly what's registered in Partners Dashboard.
- Try without per-user grant: Add
?per_user=false to the reinstall URL to disable per-user grant option.
← Back to Admin