diff --git a/lib/omni_auth/request_forgery_protection.rb b/lib/omni_auth/request_forgery_protection.rb index cbbb686473c850b5f57636a94154db372db7fbc7..3557522d3c9eaa7e5e1fe8446bd71c9fae4c8861 100644 --- a/lib/omni_auth/request_forgery_protection.rb +++ b/lib/omni_auth/request_forgery_protection.rb @@ -1,7 +1,7 @@ # Protects OmniAuth request phase against CSRF. module OmniAuth - # Based from ActionController::RequestForgeryProtection. + # Based on ActionController::RequestForgeryProtection. class RequestForgeryProtection def initialize(env) @env = env @@ -15,6 +15,10 @@ module OmniAuth request.session end + def reset_session + request.reset_session + end + def params request.params end