Sha256: 6a2352db533a9bd75faee66989269fcf3317d26a34aa36f780977c9959013f7d

Contents?: true

Size: 540 Bytes

Versions: 147

Compression:

Stored size: 540 Bytes

Contents

class OmniauthCallbacksController < Devise::OmniauthCallbacksController
  def facebook
    #print env['omniauth.auth']
    @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 linked_in
    #print env['omniauth.auth']
    @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

147 entries across 147 versions & 4 rubygems

Version Path
vkhater-social_stream-0.16.3.3 base/app/controllers/omniauth_callbacks_controller.rb
vkhater-social_stream-base-0.11.2 app/controllers/omniauth_callbacks_controller.rb
social_stream-0.18.2 base/app/controllers/omniauth_callbacks_controller.rb
social_stream-base-0.13.2 app/controllers/omniauth_callbacks_controller.rb
social_stream-0.18.1 base/app/controllers/omniauth_callbacks_controller.rb
social_stream-base-0.13.1 app/controllers/omniauth_callbacks_controller.rb
social_stream-0.18.0 base/app/controllers/omniauth_callbacks_controller.rb
social_stream-base-0.13.0 app/controllers/omniauth_callbacks_controller.rb
social_stream-0.17.1 base/app/controllers/omniauth_callbacks_controller.rb
social_stream-base-0.12.1 app/controllers/omniauth_callbacks_controller.rb
social_stream-0.17.0 base/app/controllers/omniauth_callbacks_controller.rb
social_stream-base-0.12.0 app/controllers/omniauth_callbacks_controller.rb
social_stream-0.16.3 base/app/controllers/omniauth_callbacks_controller.rb
social_stream-base-0.11.2 app/controllers/omniauth_callbacks_controller.rb
social_stream-0.16.2 base/app/controllers/omniauth_callbacks_controller.rb
social_stream-base-0.11.1 app/controllers/omniauth_callbacks_controller.rb
social_stream-0.16.1 base/app/controllers/omniauth_callbacks_controller.rb
social_stream-base-0.11.0 app/controllers/omniauth_callbacks_controller.rb
social_stream-0.15.8 base/app/controllers/omniauth_callbacks_controller.rb
social_stream-base-0.10.11 app/controllers/omniauth_callbacks_controller.rb