asanghi / omniauth-constantcontact2

OmniAuth Strategy for Constant Contact using OAuth2
MIT License
5 stars 18 forks source link

Fix compatibility with omniauth-oauth 1.4+ #8

Open pjg opened 7 years ago

pjg commented 7 years ago

References:

redtachyons commented 6 years ago

@asanghi Please merge this PR, build issue is unrelated

jagthedrummer commented 4 years ago

Would be nice to have this merged and a version bump.

jagthedrummer commented 4 years ago

In the mean time we're doing this in an initializer:

# Constant Contact Monkey Patch ---------------------------------------------
# Once the following PR is merged and a new version of the gem is released we
# can ditch this monkey patch.
# https://github.com/asanghi/omniauth-constantcontact2/pull/8
module ConstantContactMonkeyPatch
  def callback_url
    full_host + script_name + callback_path
  end
end
OmniAuth::Strategies::ConstantContact2.include ConstantContactMonkeyPatch
# End Constant Contact Monkey Patch -----------------------------------------