Method: ExvoAuth::Controllers::Base#authenticate_user!
- Defined in:
- lib/exvo_auth/controllers/base.rb
#authenticate_user!(opts = {}) ⇒ Object
A before filter to protect your sensitive actions.
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/exvo_auth/controllers/base.rb', line 3 def authenticate_user!(opts = {}) unobtrusively_authenticate_user! if !signed_in? store_request! callback_value = params[callback_key] if callback_value redirect_to non_interactive_sign_in_path(callback_key => callback_value) else redirect_to opts[:redirect_to] || sign_in_path end end end |