Class: AuthenticationsController
Instance Method Summary
collapse
#authenticate_user!, #authorise_user!, #current_user, included, #logout, #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 "#{PublishingPlatform::SSO::Config.oauth_root_url}/users/sign_out", allow_other_host: true
end
|