Class: AuthenticationsController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- AuthenticationsController
show all
- Includes:
- GDS::SSO::ControllerMethods
- Defined in:
- app/controllers/authentications_controller.rb
Instance Method Summary
collapse
#authenticate_user!, #authorise_user!, #current_user, included, #log_out, #require_signin_permission!, #skip_slimmer, #user_remotely_signed_out?, #user_signed_in?, #warden
Instance Method Details
#callback ⇒ Object
8
9
10
|
# File 'app/controllers/authentications_controller.rb', line 8
def callback
redirect_to session["return_to"] || '/'
end
|
#failure ⇒ Object
12
13
14
|
# File 'app/controllers/authentications_controller.rb', line 12
def failure
end
|
#sign_out ⇒ Object
16
17
18
19
20
21
|
# File 'app/controllers/authentications_controller.rb', line 16
def sign_out
cookie_key = Rails.application.config.session_options[:key]
cookies.delete(cookie_key)
reset_session
redirect_to GDS::SSO::Config.oauth_root_url + "/users/sign_out"
end
|