From b17f36f040a18ff6700881c56607ba6df436f652 Mon Sep 17 00:00:00 2001 From: Douwe Maan Date: Fri, 24 Apr 2015 20:10:32 +0200 Subject: Add reset_session for the :reset_session strategy. --- lib/omni_auth/request_forgery_protection.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/omni_auth/request_forgery_protection.rb b/lib/omni_auth/request_forgery_protection.rb index cbbb686473c..3557522d3c9 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 -- cgit v1.2.1