# File app/controllers/users/omniauth_callbacks_controller.rb, line 3
3: def facebook
4: # You need to implement the method below in your model
5: @user = User.find_for_facebook_oauth(env["omniauth.auth"], current_user)
6:
7: if @user.persisted?
8: flash[:notice] = I18n.t "devise.omniauth_callbacks.success", :kind => "Facebook"
9: sign_in_and_redirect @user, :event => :authentication
10: else
11: session["devise.facebook_data"] = env["omniauth.auth"]
12: redirect_to new_user_registration_url
13: end
14: end
# File app/controllers/users/omniauth_callbacks_controller.rb, line 16
16: def open_id
17: # You need to implement the method below in your model
18: @user = User.find_for_open_id(env["omniauth.auth"], current_user)
19: if @user.persisted?
20: flash[:notice] = I18n.t "devise.omniauth_callbacks.success", :kind => "Google"
21: sign_in_and_redirect @user, :event => :authentication
22: else
23: session["devise.open:id_data"] = env["openid.ext1"]
24: redirect_to new_user_registration_url
25: end
26: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.