Hi Shopify,
We are from Celigo and have used the Shopify staging app for OAuth authentication for some time. However, Shopify has informed us that staging apps will soon be deprecated, and we need to switch to a custom app.
When attempting to use OAuth with the custom app, we encountered the following error: “The redirect_uri and application_uri must have matching hosts.” Could you please assist us in resolving this issue and let us know if we’re missing any necessary information?
Also, does the custom app support OAuth authentication? We observed that after creating the custom app, there is no Client ID or secret—only an API key and secret. We’re using those for OAuth authentication, but would appreciate clarification. We also noticed that there are no fields for redirect URIs or application URIs.
Thank you.
Error Image
Here are the brief steps to resolve your issue:
-
Match Redirect URI: Ensure that the redirect_uri in your OAuth request exactly matches the base URL of your app, including the protocol (https://).
-
Use API Key for Custom Apps: For custom apps, use the API Key and API Secret Key for authentication instead of OAuth, unless OAuth is strictly needed.
-
Confirm App Configuration: Verify that the domain settings in Shopify match your app’s configuration.
-
Update Shopify Integration: If still encountering issues, check Shopify’s custom app guidelines for authentication methods and ensure you’re not using deprecated settings.
That’s it!
Hi Nolan,
Thank you for your prompt response.
-
We couldn’t locate the redirect_uri field in the app for setting or updating.
-
We are currently using the API key and secret for OAuth authentication. Are you suggesting that OAuth authentication is not supported for custom apps?
I think so OAuth authentication is not supported for custom apps.
Looks like you’re running into an OAuth issue when switching from a staging app to a custom Shopify app. The error usually means that the redirect_uri you’re using doesn’t match the application_url Shopify expects. A few things to check:
-
Matching Hosts – Make sure the redirect_uri and application_url are on the same domain. Shopify is strict about this, so even small differences can cause issues.
-
Custom App OAuth – Unlike public apps, custom apps don’t use the standard OAuth flow. They rely on API key and secret-based authentication, which is why you’re not seeing a Client ID or secret.
-
Redirect URI Setup – If there’s no place to define redirect URIs in the admin, it’s likely because custom apps are meant for direct API access within a single store, not for OAuth-based installations like public apps.
If you’re working on a NetSuite Shopify integration, it’s important to ensure that API connections remain stable, especially when switching authentication methods. If OAuth isn’t working for your use case, you might need to look into alternative authentication methods or confirm with Shopify Support if there’s a workaround.