summaryrefslogtreecommitdiff
path: root/lib/omni_auth
diff options
context:
space:
mode:
authorblackst0ne <blackst0ne.ru@gmail.com>2017-06-21 17:52:54 +1100
committerDouwe Maan <douwe@selenight.nl>2017-07-26 11:05:44 +0200
commit8ce8b21f675709c884148d050663b9f2374cdc61 (patch)
tree524480e042ce4ee835a59bec0f3089e401c94913 /lib/omni_auth
parent29022350999ab3ddc4518f7a7647939ec2de8e09 (diff)
downloadgitlab-ce-8ce8b21f675709c884148d050663b9f2374cdc61.tar.gz
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