jrallison / authlogic_oauth

Authlogic OAuth is an extension of the Authlogic library to add OAuth support. OAuth can be used to allow users to login with their Twitter credentials.
authlogic-oauth.heroku.com
MIT License
165 stars 25 forks source link

OAuth:Unauthorized (401) #15

Open listenlight opened 14 years ago

listenlight commented 14 years ago

I found a blog post that said to change the before_filter but that is not working. I keep getting this error. Please help. I can find no other help on this.


OAuth::Unauthorized (401 Unauthorized):
  oauth (0.4.0) lib/oauth/consumer.rb:215:in `token_request'
  oauth (0.4.0) lib/oauth/consumer.rb:136:in `get_request_token'
  /usr/lib/ruby/gems/1.8/gems/authlogic-oauth-1.0.8/lib/authlogic_oauth/oauth_process.rb:21:in `redirect_to_oauth'
  /usr/lib/ruby/gems/1.8/gems/authlogic-oauth-1.0.8/lib/authlogic_oauth/acts_as_authentic.rb:63:in `save'
  app/controllers/users_controller.rb:11:in `create'
  haml (2.2.24) rails/./lib/sass/plugin/rails.rb:20:in `process'
  /usr/lib/ruby/gems/1.8/gems/authlogic-oauth-1.0.8/lib/oauth_callback_filter.rb:10:in `call'
  /usr/lib/ruby/gems/1.8/gems/authlogic-oauth-1.0.8/lib/oauth_callback_filter.rb:10:in `call'
madhums commented 13 years ago

i have got the same problem too...

madhums commented 13 years ago

i figured it out... you should give the proper token and secret values in the Oauth::consumer function...