Open kpheasey opened 3 years ago
@kpheasey I got the same issue. You just need to redefine callback_url
- https://github.com/omniauth/omniauth-oauth2/issues/93#issuecomment-227247801
In my case it looks like this:
# omniauth.rb
module OmniAuthExtensions
def callback_url
full_host + script_name + callback_path
end
end
OmniAuth::Strategies::ConstantContact2.include OmniAuthExtensions
I'm running into a problem where I get a
redirect_uri_mismatch
error during the callback phase, after granting access on CC. CC is redirecting back to my development server, but when we can't get an access token.Constant Contact app settings: Redirect URI: http://localhost:5000/companies/auth/constantcontact/callback Callback URL: http://localhost:5000/companies/auth/constantcontact/callback
I found a very old support article where someone had the same issue. However, their solution description is a bit cryptic. https://community.constantcontact.com/t5/Developer-Support-ask-questions/Redirect-URI-mismatch-Access-Token-Request/m-p/98467