Class: AuthenticationsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/authentications_controller.rb

Instance Method Summary collapse

Instance Method Details

#callbackObject



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

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

#failureObject



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

def failure

end

#sign_outObject



14
15
16
17
18
19
# File 'app/controllers/authentications_controller.rb', line 14

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