Parent

Users::OmniauthCallbacksController

Public Instance Methods

facebook() click to toggle source
    # 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
open_id() click to toggle source
    # 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
passthru() click to toggle source
    # File app/controllers/users/omniauth_callbacks_controller.rb, line 28
28:   def passthru

29:     render :file => "#{Rails.root}/public/404.html", :status => 404, :layout => false

30:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.