Class: Ibrain::SocialCallbacksController

Inherits:
Devise::OmniauthCallbacksController
  • Object
show all
Includes:
ActionController::Helpers, ActionController::MimeResponds, Core::ControllerHelpers::Response
Defined in:
app/controllers/ibrain/social_callbacks_controller.rb

Instance Method Summary collapse

Instance Method Details

#appleObject



24
25
26
# File 'app/controllers/ibrain/social_callbacks_controller.rb', line 24

def apple
  generic_callback( 'apple' )
end

#createObject



32
33
34
35
36
# File 'app/controllers/ibrain/social_callbacks_controller.rb', line 32

def create
  user = line_repo.find_or_initialize!

  render_json_ok(user, nil)
end

#facebookObject



12
13
14
# File 'app/controllers/ibrain/social_callbacks_controller.rb', line 12

def facebook
  generic_callback( 'facebook' )
end

#google_oauth2Object



20
21
22
# File 'app/controllers/ibrain/social_callbacks_controller.rb', line 20

def google_oauth2
  generic_callback( 'google_oauth2' )
end

#instagramObject



8
9
10
# File 'app/controllers/ibrain/social_callbacks_controller.rb', line 8

def instagram
  generic_callback( 'instagram' )
end

#lineObject



28
29
30
# File 'app/controllers/ibrain/social_callbacks_controller.rb', line 28

def line
  generic_callback( 'line' )
end

#new_user_session(*args) ⇒ Object



38
39
40
# File 'app/controllers/ibrain/social_callbacks_controller.rb', line 38

def new_user_session(*args)
  new_session(*args)
end

#twitterObject



16
17
18
# File 'app/controllers/ibrain/social_callbacks_controller.rb', line 16

def twitter
  generic_callback( 'twitter' )
end