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-1.1.12 base/app/controllers/omniauth_callbacks_controller.rb
social_stream-base-1.1.11 app/controllers/omniauth_callbacks_controller.rb
social_stream-1.1.11 base/app/controllers/omniauth_callbacks_controller.rb
social_stream-base-1.1.10 app/controllers/omniauth_callbacks_controller.rb
social_stream-1.1.10 base/app/controllers/omniauth_callbacks_controller.rb
social_stream-base-1.1.9 app/controllers/omniauth_callbacks_controller.rb
social_stream-1.1.9 base/app/controllers/omniauth_callbacks_controller.rb
social_stream-base-1.1.8 app/controllers/omniauth_callbacks_controller.rb
social_stream-1.1.8 base/app/controllers/omniauth_callbacks_controller.rb
social_stream-base-1.1.7 app/controllers/omniauth_callbacks_controller.rb
social_stream-1.1.7 base/app/controllers/omniauth_callbacks_controller.rb
social_stream-base-1.1.6 app/controllers/omniauth_callbacks_controller.rb
social_stream-1.1.6 base/app/controllers/omniauth_callbacks_controller.rb
social_stream-base-1.1.5 app/controllers/omniauth_callbacks_controller.rb
social_stream-1.1.5 base/app/controllers/omniauth_callbacks_controller.rb
social_stream-base-1.1.4 app/controllers/omniauth_callbacks_controller.rb
social_stream-1.1.4 base/app/controllers/omniauth_callbacks_controller.rb
social_stream-1.1.3 base/app/controllers/omniauth_callbacks_controller.rb
social_stream-base-1.1.3 app/controllers/omniauth_callbacks_controller.rb
social_stream-1.1.2 base/app/controllers/omniauth_callbacks_controller.rb