🔍 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:

  1. 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)
  2. 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.
  3. Set APP_URL environment variable (optional but recommended):
    APP_URL=https://proxy.naturaldyestore.com
    This ensures consistent redirect URIs.
  4. Ensure HTTPS is enabled:
    Shopify requires HTTPS for OAuth. If using a proxy (like ngrok or cloudflare), make sure it's configured correctly.
  5. Check environment variables:
    Verify SHOPIFY_API_KEY and SHOPIFY_API_SECRET are set correctly.
  6. 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":

  1. Check browser console: Open browser developer tools (F12) and check for any errors in the Console tab.
  2. Try in incognito/private mode: This will disable browser extensions that might be blocking the request.
  3. Check server logs: Look for the OAuth URL in server logs and verify it's correct.
  4. Verify shop domain: Make sure the shop domain is correct (format: shop-name.myshopify.com)
  5. Check redirect URI: Verify that the redirect URI matches exactly what's registered in Partners Dashboard.
  6. Try without per-user grant: Add ?per_user=false to the reinstall URL to disable per-user grant option.

← Back to Admin