Rails and omniauth-createsend (CampaignMonitor) invalid_redirect_uri

Hi all,

Can’t seem to find why I’m getting an “invalid_redirect_uri”

When I go to “/auth/createsend/” the link does redirect me to campaignmonitor user login screen, but when I click on “Allow access” I’m getting the “invalid_redirect_uri” error.

I have an entry in my routes.rb file with the exact url that I’ve registered in CampaignMonitor permited Applications.

CampaignMonitor url -> http://127.0.0.1:3000/auth/createsend/callback

Routes.rb entry -> get ‘/auth/:provider/callback’,to:‘sessions#create’

Thanks in advance!