for rails 2.3.8. This is with authlogic.
On Nov 1, 2:14 am, gordon <
gordon.kin...@gmail.com> wrote:
> Typo. Use version 0.1.5 of omniauth
>
> On Nov 1, 10:09 am, gordon <
gordon.kin...@gmail.com> wrote:
>
>
>
>
>
>
>
> > I have it working successfully.
>
> > 1) Had to use 0.1.15 version of omniauth
> > 2) something like this in environment.rb (customise for your
> > situation)
>
> > config.gem 'omniauth'
> > config.middleware.use "OmniAuth::Builder" do
> > provider :twitter,
> > INSTANCE_CONFIG['twitter_consumer_key'],INSTANCE_CONFIG['twitter_consumer_s ecret']
> > provider :facebook, INSTANCE_CONFIG['facebook_app_id'],
> > INSTANCE_CONFIG['facebook_app_secret'], :scope =>
> > "publish_stream,user_likes,email,offline_access"
> > end
>
> > 3) This for my routes
>
> > map.resources :authentications
> > #match '/auth/:provider/callback' => 'authentications#create'
> > map.auth '/auth/:provider/callback', :controller =>
> > 'authentications', :action => 'create'
>