Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblackst0ne <blackst0ne.ru@gmail.com>2017-06-21 09:52:54 +0300
committerDouwe Maan <douwe@selenight.nl>2017-07-26 12:05:44 +0300
commit8ce8b21f675709c884148d050663b9f2374cdc61 (patch)
tree524480e042ce4ee835a59bec0f3089e401c94913 /lib/omni_auth
parent29022350999ab3ddc4518f7a7647939ec2de8e09 (diff)
Refactor CSRF protection
Diffstat (limited to 'lib/omni_auth')
-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