Class: Gitkeeper::AuthController

Inherits:
ApplicationController show all
Defined in:
app/controllers/gitkeeper/auth_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject

binding.pry



11
12
13
14
15
16
# File 'app/controllers/gitkeeper/auth_controller.rb', line 11

def create
  # raise request.env["omniauth.auth"].to_yaml  
  # Rails.logger.info "\r\n" + "#{Time.now} " + "auth = #{auth}" + "\r\n"
  user_find_or_create_from_auth_hash(request.env['omniauth.auth'])
  redirect_to '/auth'
end

#destroyObject



18
19
20
21
# File 'app/controllers/gitkeeper/auth_controller.rb', line 18

def destroy
  session[:user_id] = nil
  redirect_to '/auth'
end

#indexObject



7
8
# File 'app/controllers/gitkeeper/auth_controller.rb', line 7

def index
end