Sha256: e927d7fca33ebebf5332452ad59290b6e7c61e4747d09fd61ba169efe3c70242

Contents?: true

Size: 370 Bytes

Versions: 82

Compression:

Stored size: 370 Bytes

Contents

class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
  def facebook
    data = env["omniauth.auth"]
    session["devise.facebook_data"] = data["extra"]["user_hash"]
    render :json => data
  end

  def sign_in_facebook
    user = User.find_by_email('user@test.com')
    user.remember_me = true
    sign_in user
    render :text => ""
  end
end

Version data entries

82 entries across 76 versions & 10 rubygems

Version Path
devise-3.2.2 test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
devise-3.2.1 test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
devise-3.1.2 test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
devise-3.0.4 test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
devise-2.2.8 test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
devise-3.2.0 test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
devise-3.1.1 test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
devise-3.1.0 test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
devise-2.0.6 test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
devise-2.1.4 test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
devise-2.2.7 test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
devise-3.0.3 test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
devise-3.1.0.rc2 test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
devise-2.2.6 test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
devise-3.0.2 test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
devise-3.0.1 test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
devise-2.2.5 test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
loyal_devise-2.1.7 test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
loyal_devise-2.1.6 test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb
devise-3.0.0 test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb