NoamB/sorcery — Issue #234: OAuth2::Error in OauthsController#callback  OAuth2::Error in OauthsController#callback  
Author: smartcode
Created: 2012-03-06 19:20:47+00:00
State: open

Hello,
I try to authenticate users using facebook it worked for some days and then i did a "bundle update"
and now i always get OAuth2::Error in OauthsController#callback

```javascript
/var/www/.../..._api/shared/bundle/ruby/1.9.1/bundler/gems/oauth2-8fba38201ecd/lib/oauth2/client.rb:107:in `request'
/var/www/.../..._api/shared/bundle/ruby/1.9.1/bundler/gems/oauth2-8fba38201ecd/lib/oauth2/client.rb:128:in `get_token'
/var/www/.../..._api/shared/bundle/ruby/1.9.1/bundler/gems/oauth2-8fba38201ecd/lib/oauth2/strategy/auth_code.rb:29:in `get_token'
/var/www/.../..._api/shared/bundle/ruby/1.9.1/bundler/gems/sorcery-7997cd851206/lib/sorcery/controller/submodules/external/protocols/oauth2.rb:23:in `get_access_token'
/var/www/.../..._api/shared/bundle/ruby/1.9.1/bundler/gems/sorcery-7997cd851206/lib/sorcery/controller/submodules/external/providers/facebook.rb:78:in `process_callback'
/var/www/.../..._api/shared/bundle/ruby/1.9.1/bundler/gems/sorcery-7997cd851206/lib/sorcery/controller/submodules/external.rb:46:in `login_from'
app/controllers/oauths_controller.rb:12:in `callback'
actionpack (3.2.0) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (3.2.0) lib/abstract_controller/base.rb:167:in `process_action'
actionpack (3.2.0) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (3.2.0) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
```

I am running rails 3.2 on ruby 1.9.3 and both sorcery and oauth2 gems are branch master and included directly over git

thanks for your help!