summaryrefslogtreecommitdiff
path: root/lib/omni_auth/request_forgery_protection.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/omni_auth/request_forgery_protection.rb')
-rw-r--r--lib/omni_auth/request_forgery_protection.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/omni_auth/request_forgery_protection.rb b/lib/omni_auth/request_forgery_protection.rb
deleted file mode 100644
index 69155131d8d..00000000000
--- a/lib/omni_auth/request_forgery_protection.rb
+++ /dev/null
@@ -1,21 +0,0 @@
-# Protects OmniAuth request phase against CSRF.
-
-module OmniAuth
- module RequestForgeryProtection
- class Controller < ActionController::Base
- protect_from_forgery with: :exception
-
- def index
- head :ok
- end
- end
-
- def self.app
- @app ||= Controller.action(:index)
- end
-
- def self.call(env)
- app.call(env)
- end
- end
-end