README.md in omniauth-constantcontact2-1.0.1 vs README.md in omniauth-constantcontact2-1.0.2

- old
+ new

@@ -2,10 +2,12 @@ This gem is an OmniAuth 2.0 Strategy for the [ConstantContact API](http://http://community.constantcontact.com/t5/Documentation/Authentication-using-OAuth-2-0-new-October-2011/ba-p/38313) It supports the OmniAuth REST API which uses OAuth 2.0 +Many thanks to [Caleb Clark](https://github.com/calebclark/omniauth-constantcontact) for writing the original OmniAuth strategy. This builds on his work. + ## Installation Add this line to your application's Gemfile: gem 'omniauth-constantcontact2' @@ -33,9 +35,17 @@ ```ruby Rails.application.config.middleware.use OmniAuth::Builder do provider :constantcontact, ENV['CC_KEY'], ENV['CC_SECRET'] end ``` + +** Ensure that you have provided the correct Redirect URI in Constant Contact when you generated the Key. +You are likely to see an error stating "invalid redirect" if the Request URI does not match the one from your environment. + +In development for example the Redirect URI is + + http://localhost:3000/auth/constantcontact/callback + You will have to put in your consumer key and secret, which you can find at http://community.constantcontact.com/t5/Documentation/API-Keys/ba-p/25015 For additional information, refer to the [OmniAuth wiki](https://github.com/intridea/omniauth/wiki).