Class: SessionsController
- Inherits:
-
CASClient::SessionsController
- Object
- ApplicationController
- CASClient::SessionsController
- SessionsController
- Defined in:
- lib/generators/templates/sessions_controller.rb
Instance Method Summary collapse
- #cas_logout ⇒ Object
-
#create ⇒ Object
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].
Methods inherited from CASClient::SessionsController
Instance Method Details
#cas_logout ⇒ Object
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 |
#create ⇒ Object
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 |