diff options
author | Ash McKenzie <amckenzie@gitlab.com> | 2018-08-05 15:11:37 +0300 |
---|---|---|
committer | Ash McKenzie <amckenzie@gitlab.com> | 2018-08-14 08:56:44 +0300 |
commit | b2103cb431329cf00e3ae79e6c577f018cd66168 (patch) | |
tree | 0199d895eac8ada87eff51700fe49bff2fcb5aa6 /lib/gitlab/git_access.rb | |
parent | bea52d827e895c9261b3b1e01980832832f7c82a (diff) |
Allow auth via JWT (always false in CE)
Diffstat (limited to 'lib/gitlab/git_access.rb')
-rw-r--r-- | lib/gitlab/git_access.rb | 6 |
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 |