intridea/omniauth — Issue #577: Twitter connection stopped working after upgrading to 1.0.2 from 0.3.2
Author: azabaj
Created: 2012-02-14 14:34:16+00:00
State: open

Hi,

I've just upgraded to rails 3.2.1 from 3.1.3, so I also had to upgrade omniauth to 1.0.2 and add omniauth-twitter 0.0.8.

Gemfile:
```ruby
gem 'omniauth', '1.0.2'
gem 'omniauth-twitter', '0.0.8'
```
/config/initializers/omniauth.rb
```ruby
Rails.application.config.middleware.use OmniAuth::Builder do
provider :twitter, 'KzJBFRg8oVoixvfrY3YdQ', 'mwCf9hiu8aAZLmaKoIpJiT4k8Jy8kHnCD8kzyL44', :client_options => {:authorize_path => '/oauth/authorize'}
end
```

After the upgrade my already authorized twitter connections suddenly stopped working. I could not fetch home_timeline, profile_image, etc. So, I've tried to re-authorize my twitter users. The authorization process went smoothly, I got token, secret and name successfully from the new form of the auth_hash.
But after this, I could not fetch timeline, mentions, etc, it throws an exception:
```ruby
Twitter::Error::Unauthorized: Could not authenticate you.
```
I'm using the twitter gem 2.1.0 from Jnunemaker and it worked perfectly before the upgrade.

Did someone have the same problems after upgrading?

Thank you!