Class: DeviseCasAuthenticatable::SingleSignOut::WardenFailureApp
- Inherits:
-
Devise::FailureApp
- Object
- Devise::FailureApp
- DeviseCasAuthenticatable::SingleSignOut::WardenFailureApp
- Defined in:
- lib/devise_cas_authenticatable/single_sign_out/warden_failure_app.rb
Overview
Redirect to the logout url when :warden is thrown, so that a single_sign_out request can be initiated
Instance Method Summary collapse
- #redirect ⇒ Object
-
#respond ⇒ Object
You need to override respond to eliminate recall.
Instance Method Details
#redirect ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/devise_cas_authenticatable/single_sign_out/warden_failure_app.rb', line 14 def redirect store_location! if flash[:timedout] && flash[:alert] flash.keep(:timedout) flash.keep(:alert) else flash[:alert] = end redirect_to redirect_url end |
#respond ⇒ Object
You need to override respond to eliminate recall
6 7 8 9 10 11 12 |
# File 'lib/devise_cas_authenticatable/single_sign_out/warden_failure_app.rb', line 6 def respond if http_auth? http_auth else redirect end end |