Commit 2d1fb53a2b15f3127e239e728082c25f4886c0ed
Committed by
Victor Costa
1 parent
68e014aa
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
oauth_client: fix failure callback
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
plugins/oauth_client/lib/oauth_client_plugin.rb
| ... | ... | @@ -46,6 +46,8 @@ class OauthClientPlugin < Noosfero::Plugin |
| 46 | 46 | true |
| 47 | 47 | end |
| 48 | 48 | |
| 49 | + OmniAuth.config.on_failure = OauthClientPluginPublicController.action(:failure) | |
| 50 | + | |
| 49 | 51 | Rails.application.config.middleware.use OmniAuth::Builder do |
| 50 | 52 | PROVIDERS.each do |provider, options| |
| 51 | 53 | provider provider, :setup => lambda { |env| | ... | ... |