diff options
Diffstat (limited to 'app/controllers/users/omniauth_callbacks_controller.rb')
-rw-r--r-- | app/controllers/users/omniauth_callbacks_controller.rb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/app/controllers/users/omniauth_callbacks_controller.rb b/app/controllers/users/omniauth_callbacks_controller.rb new file mode 100644 index 0000000..1907e5b --- /dev/null +++ b/app/controllers/users/omniauth_callbacks_controller.rb | |||
@@ -0,0 +1,28 @@ | |||
1 | class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController | ||
2 | # You should configure your model like this: | ||
3 | # devise :omniauthable, omniauth_providers: [:twitter] | ||
4 | |||
5 | # You should also create an action method in this controller like this: | ||
6 | # def twitter | ||
7 | # end | ||
8 | |||
9 | # More info at: | ||
10 | # https://github.com/plataformatec/devise#omniauth | ||
11 | |||
12 | # GET|POST /resource/auth/twitter | ||
13 | # def passthru | ||
14 | # super | ||
15 | # end | ||
16 | |||
17 | # GET|POST /users/auth/twitter/callback | ||
18 | # def failure | ||
19 | # super | ||
20 | # end | ||
21 | |||
22 | # protected | ||
23 | |||
24 | # The path used when OmniAuth fails | ||
25 | # def after_omniauth_failure_path_for(scope) | ||
26 | # super(scope) | ||
27 | # end | ||
28 | end | ||