Removes logic from Jwt and handle different scenarios on Gitlab::Auth
- When using 'read_repo' password and project are sent, so we used both of them to fetch for the token - When using 'read_registry' only the password is sent, so we only use that for fetching the token
显示
- app/controllers/jwt_controller.rb 1 个添加, 6 个删除app/controllers/jwt_controller.rb
- app/policies/project_policy.rb 3 个添加, 3 个删除app/policies/project_policy.rb
- app/services/auth/container_registry_authentication_service.rb 2 个添加, 2 个删除...ervices/auth/container_registry_authentication_service.rb
- lib/gitlab/auth.rb 13 个添加, 5 个删除lib/gitlab/auth.rb
- spec/lib/gitlab/auth_spec.rb 99 个添加, 52 个删除spec/lib/gitlab/auth_spec.rb
- spec/policies/project_policy_spec.rb 2 个添加, 2 个删除spec/policies/project_policy_spec.rb
- spec/services/auth/container_registry_authentication_service_spec.rb 1 个添加, 1 个删除...es/auth/container_registry_authentication_service_spec.rb
加载中
想要评论请 注册 或 登录