summaryrefslogtreecommitdiff
path: root/app/controllers/groups/dependency_proxy/application_controller.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-05-06 21:08:35 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-05-06 21:08:35 +0000
commit1327c778c43e8a423d32bc50be2a0bc7cbf82932 (patch)
tree0758133ddf2c39741b08899ff2b23308206580c0 /app/controllers/groups/dependency_proxy/application_controller.rb
parent2b6716fbb2c0ec50bd019b3e08aff2c3b95f11fa (diff)
downloadgitlab-ce-1327c778c43e8a423d32bc50be2a0bc7cbf82932.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/controllers/groups/dependency_proxy/application_controller.rb')
-rw-r--r--app/controllers/groups/dependency_proxy/application_controller.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/app/controllers/groups/dependency_proxy/application_controller.rb b/app/controllers/groups/dependency_proxy/application_controller.rb
index 841e637e4c4..f7337a3cdb1 100644
--- a/app/controllers/groups/dependency_proxy/application_controller.rb
+++ b/app/controllers/groups/dependency_proxy/application_controller.rb
@@ -16,8 +16,6 @@ module Groups
prepend_before_action :authenticate_user_from_jwt_token!
def authenticate_user_from_jwt_token!
- return unless dependency_proxy_for_private_groups?
-
authenticate_with_http_token do |token, _|
@authentication_result = EMPTY_AUTH_RESULT
@@ -36,10 +34,6 @@ module Groups
private
- def dependency_proxy_for_private_groups?
- Feature.enabled?(:dependency_proxy_for_private_groups)
- end
-
def request_bearer_token!
# unfortunately, we cannot use https://api.rubyonrails.org/classes/ActionController/HttpAuthentication/Token.html#method-i-authentication_request
response.headers['WWW-Authenticate'] = ::DependencyProxy::Registry.authenticate_header