Hi all
I have a Rails 2.3.x app that uses the rack-oauth library (https://
github.com/remi/rack-oauth) to allow authentication via Twitter.
Everything works with sign in but when the user declines the
authorization, the OAuth gem raises an OAuth::Unauthorized error
(which is fine) but for some reason this triggers a 500 error in my
Rails app (which is not so fine).
In my ApplicationController I've tried the rescue_from trick but it
seems that the OAuth::Unauthorized isn't getting that far.
Am I doing anything wrong? Can anybody help me figure out how to
either stop the 500 error or rescue that OAuth::Unauthorized error
before it causes the 500 error.
Some gists of the code:
The log output: https://gist.github.com/1045026
The method in the OAuth gem that raises the error (line 23):
https://gist.github.com/1045031
My rescue_from in the ApplicationController: https://gist.github.com/1045040
Thanks SD
--
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby