I have my class Users::OmniauthCallbacksController <
Devise::OmniauthCallbacksController and I'm overriding the
after_omniauth_failure_path_for method:
protected
def after_omniauth_failure_path_for resource
'/report_failure'
end
But the super one is the one that gets called.
I suspects that it's because the passthru workaround:
devise_for :users do
get '/users/auth/:provider' => 'users/
omniauth_callbacks#passthru'
end
Does anybody knows how to overcome this issue? I'm using Devise 2.0.4
This is the log file report:
Started GET "/users/auth/facebook/callback?
error_reason=user_denied&error=access_denied&error_description=The+user
+denied+your+request." for 77.124.184.115 at 2012-04-19 11:34:46 +0000
Processing by Devise::OmniauthCallbacksController#failure as HTML
Parameters: {"error_reason"=>"user_denied",
"error"=>"access_denied", "error_description"=>"The user denied your
request."}
Redirected to
http://myapp.com/users/sign_in
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
Thank you