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
12
13
|
# File 'app/controllers/authentications_controller.rb', line 11
def failure
end
|
#sign_out ⇒ Object
15
16
17
18
|
# File 'app/controllers/authentications_controller.rb', line 15
def sign_out
logout
redirect_to GDS::SSO::Config.oauth_root_url + "/users/sign_out"
end
|