Support JOB-TOKEN authentication header for generic packages
Support both JOB-TOKEN and basic authentication headers for Generic packages. Update `route_authentication_setting[:job_token_allowed]` to support the following values: - `true`, `:request`, `[:request]` to authenticate using params or `JOB-TOKEN` header - `:basic_auth`, `[:basic_auth]` to authenticate using Basic Authentication header - `[:request, :basic_auth]` to authenticate using both params or `JOB-TOKEN` header, and Basic Authentication header. Changelog: changed
显示
- doc/user/packages/generic_packages/index.md 20 个添加, 2 个删除doc/user/packages/generic_packages/index.md
- lib/api/generic_packages.rb 1 个添加, 1 个删除lib/api/generic_packages.rb
- lib/api/helpers/packages/maven/basic_auth_helpers.rb 1 个添加, 1 个删除lib/api/helpers/packages/maven/basic_auth_helpers.rb
- lib/gitlab/auth/auth_finders.rb 38 个添加, 22 个删除lib/gitlab/auth/auth_finders.rb
- lib/gitlab/auth/request_authenticator.rb 1 个添加, 1 个删除lib/gitlab/auth/request_authenticator.rb
- spec/lib/gitlab/auth/auth_finders_spec.rb 56 个添加, 2 个删除spec/lib/gitlab/auth/auth_finders_spec.rb
- spec/requests/api/generic_packages_spec.rb 10 个添加, 0 个删除spec/requests/api/generic_packages_spec.rb
加载中
想要评论请 注册 或 登录