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:
authorRobert Speicher <robert@gitlab.com>2018-09-01 02:11:20 +0300
committerRobert Speicher <robert@gitlab.com>2018-09-01 02:11:20 +0300
commit0fa2d16795180f7b565aef16ec79fa4cfefeffda (patch)
treef2a9f56360f5ed29e2894f340aa4bbcd0da3c55c
parent9d9429589b417ceae4989925c297958a21f36544 (diff)
parentb2103cb431329cf00e3ae79e6c577f018cd66168 (diff)
Merge branch 'ash.mckenzie/allow-auth-via-jwt' into 'master'
Allow auth via JWT (always false in CE) See merge request gitlab-org/gitlab-ce!21038
-rw-r--r--lib/gitlab/git_access.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/gitlab/git_access.rb b/lib/gitlab/git_access.rb
index 35808149b90..258e19a340b 100644
--- a/lib/gitlab/git_access.rb
+++ b/lib/gitlab/git_access.rb
@@ -233,6 +233,8 @@ module Gitlab
end
elsif user
# User access is verified in check_change_access!
+ elsif authed_via_jwt?
+ # Authenticated via JWT
else
raise UnauthorizedError, ERROR_MESSAGES[:upload]
end
@@ -321,6 +323,10 @@ module Gitlab
!Gitlab.config.gitlab_shell.receive_pack
end
+ def authed_via_jwt?
+ false
+ end
+
protected
def changes_list