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, #logout, #user_remotely_signed_out?, #user_signed_in?, #warden
Instance Method Details
#callback ⇒ Object
7
8
9
|
# File 'app/controllers/authentications_controller.rb', line 7
def callback
redirect_to session["return_to"] || "/"
end
|
#failure ⇒ Object
11
|
# File 'app/controllers/authentications_controller.rb', line 11
def failure; end
|
#sign_out ⇒ Object
13
14
15
16
|
# File 'app/controllers/authentications_controller.rb', line 13
def sign_out
logout
redirect_to "#{GDS::SSO::Config.oauth_root_url}/users/sign_out", allow_other_host: true
end
|