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:
authorFrancisco Lopez <fjlopez@gitlab.com>2017-11-09 21:04:19 +0300
committerFrancisco Lopez <fjlopez@gitlab.com>2017-11-17 12:02:11 +0300
commit21153a4f47871733f3c0d333a10ffa69ada9a5a9 (patch)
treef8b45501aab856f6360f75032b09d1695d78765b /lib/api/api_guard.rb
parentaecc3eb0809c4436a57f5ecdd88def58e704205d (diff)
Homogenising the type of the request handled by UserAuthFinder. Also tests fixed
Diffstat (limited to 'lib/api/api_guard.rb')
-rw-r--r--lib/api/api_guard.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/api/api_guard.rb b/lib/api/api_guard.rb
index 01e15ffee84..e2a1a51b300 100644
--- a/lib/api/api_guard.rb
+++ b/lib/api/api_guard.rb
@@ -6,9 +6,6 @@ module API
module APIGuard
extend ActiveSupport::Concern
- PRIVATE_TOKEN_HEADER = "HTTP_PRIVATE_TOKEN".freeze
- PRIVATE_TOKEN_PARAM = :private_token
-
included do |base|
# OAuth2 Resource Server Authentication
use Rack::OAuth2::Server::Resource::Bearer, 'The API' do |request|