Class: SessionsController

Inherits:
CASClient::SessionsController show all
Defined in:
lib/generators/templates/sessions_controller.rb

Instance Method Summary collapse

Methods inherited from CASClient::SessionsController

#destroy, #new

Instance Method Details

#cas_logoutObject



12
13
14
15
16
# File 'lib/generators/templates/sessions_controller.rb', line 12

def cas_logout
  # do whatever you need here to kill a user's session
  # session[:uuid] = nil
  super # DO NOT REMOVE THIS
end

#createObject

disable whatever authorization mechanism you have for these actions so that the server can redirect users who are not logged in skip_before_filter :authorize, :only => [:new, :create]



6
7
8
9
10
# File 'lib/generators/templates/sessions_controller.rb', line 6

def create
  # do whatever you need here to persist the users session within your app
  # session[:uuid] = request.env['omniauth.auth']['uid']
  # redirect_to '/'
end