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
# File 'app/controllers/authentications_controller.rb', line 11

def failure; end

#sign_outObject



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