Sha256: 5a30bd070c7c998f4e97fda7543f7c53f1a14841a186d365cd79f2ac7365ad08

Contents?: true

Size: 477 Bytes

Versions: 98

Compression:

Stored size: 477 Bytes

Contents

class OmniauthCallbacksController < Devise::OmniauthCallbacksController
  def facebook
    @user = User.find_or_create_for_facebook_oauth(env['omniauth.auth'],current_user)

    if @user.persisted?
      sign_in_and_redirect @user, :event => :authentication
    end
  end

  def linkedin
    @user = User.find_or_create_for_linkedin_oauth(env['omniauth.auth'],current_user)

    if @user.persisted?
      sign_in_and_redirect @user, :event => :authentication
    end
  end
end

Version data entries

98 entries across 98 versions & 2 rubygems

Version Path
social_stream-0.21.1 base/app/controllers/omniauth_callbacks_controller.rb
social_stream-base-0.16.1 app/controllers/omniauth_callbacks_controller.rb
social_stream-0.21.0 base/app/controllers/omniauth_callbacks_controller.rb
social_stream-base-0.16.0 app/controllers/omniauth_callbacks_controller.rb
social_stream-0.20.2 base/app/controllers/omniauth_callbacks_controller.rb
social_stream-base-0.15.2 app/controllers/omniauth_callbacks_controller.rb
social_stream-0.20.1 base/app/controllers/omniauth_callbacks_controller.rb
social_stream-base-0.15.1 app/controllers/omniauth_callbacks_controller.rb
social_stream-0.20.0 base/app/controllers/omniauth_callbacks_controller.rb
social_stream-base-0.15.0 app/controllers/omniauth_callbacks_controller.rb
social_stream-0.19.3 base/app/controllers/omniauth_callbacks_controller.rb
social_stream-base-0.14.3 app/controllers/omniauth_callbacks_controller.rb
social_stream-0.19.2 base/app/controllers/omniauth_callbacks_controller.rb
social_stream-base-0.14.2 app/controllers/omniauth_callbacks_controller.rb
social_stream-0.19.1 base/app/controllers/omniauth_callbacks_controller.rb
social_stream-base-0.14.1 app/controllers/omniauth_callbacks_controller.rb
social_stream-0.19.0 base/app/controllers/omniauth_callbacks_controller.rb
social_stream-base-0.14.0 app/controllers/omniauth_callbacks_controller.rb