Fixing 'Oauth error invalid_request' for Shopify Apps

It seems recently that a lot of folks (me included) have been running into errors with the OAuth flow when building Shopify applications - most specifically, getting an error reading “Oauth error invalid_request: The redirect_uri is missing or not whitelisted”.

I recorded a quick screencast with an overview of some things you might want to check if running into this error, especially if you’re using Rails and the shopify_app gem.

If you’re in a rush and don’t want to watch the screencast, try checking to make sure that your omniauth.rb looks something like this (assuming you’re using Rails):

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :shopify,
    :redirect_uri => ShopifyApp.configuration.redirect_uri,
    :callback_url => ShopifyApp.configuration.redirect_uri,
    :scope => ShopifyApp.configuration.scope