Module: Omniauth::Rails::Flash
- Extended by:
- ActiveSupport::Concern
- Included in:
- SessionsController
- Defined in:
- app/controllers/omniauth/rails/flash.rb
Instance Method Summary collapse
Instance Method Details
#set_url_to_return_to_after_authentication ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'app/controllers/omniauth/rails/flash.rb', line 7 def set_url_to_return_to_after_authentication # Use caution when setting these urls. # There are phishing risks associated with redirection, as described here: # See https://www.owasp.org/index.php/Unvalidated_Redirects_and_Forwards_Cheat_Sheet flash[:url_to_return_to_after_authentication] = url_to_return_to_after_authentication_from_flash || default_url_to_return_to_after_authentication end |