Class: AuthenticationsController

Inherits:
ActionController::Base
  • Object
show all
Includes:
GDS::SSO::ControllerMethods
Defined in:
app/controllers/authentications_controller.rb

Instance Method Summary collapse

Methods included from GDS::SSO::ControllerMethods

#authenticate_user!, #authorise_user!, #current_user, included, #logout, #user_remotely_signed_out?, #user_signed_in?, #warden

Instance Method Details

#callbackObject



7
8
9
# File 'app/controllers/authentications_controller.rb', line 7

def callback
  redirect_to session["return_to"] || '/'
end

#failureObject



11
12
13
# File 'app/controllers/authentications_controller.rb', line 11

def failure

end

#sign_outObject



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