Shopify custom app - OAuth

Shopify custom app - OAuth

Sandeepkumar
Shopify Partner
2 0 0

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

Sandeepkumar_0-1727429895375.png

 

Replies 3 (3)

Iwillsolveit
Tourist
42 1 3

Here are the brief steps to resolve your issue:

 

1. Match Redirect URI: Ensure that the redirect_uri in your OAuth request exactly matches the base URL of your app, including the protocol (https://).

 

 

2. 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.

 

 

3. Confirm App Configuration: Verify that the domain settings in Shopify match your app's configuration.

 

 

4. 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!

 

Hello I'm Nolan you can reach out to me here (https://wa.link/f7lf0o) if you ever need anything 
Sandeepkumar
Shopify Partner
2 0 0

Hi Nolan,

Thank you for your prompt response.

  1. We couldn't locate the redirect_uri field in the app for setting or updating.

  2. We are currently using the API key and secret for OAuth authentication. Are you suggesting that OAuth authentication is not supported for custom apps?

Iwillsolveit
Tourist
42 1 3

I think so OAuth authentication is not supported for custom apps.

Hello I'm Nolan you can reach out to me here (https://wa.link/f7lf0o) if you ever need anything 