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

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

Thanks in advance!