-
- Downloads
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
Showing
- app/controllers/jwt_controller.rb 1 addition, 6 deletionsapp/controllers/jwt_controller.rb
- app/policies/project_policy.rb 3 additions, 3 deletionsapp/policies/project_policy.rb
- app/services/auth/container_registry_authentication_service.rb 2 additions, 2 deletions...ervices/auth/container_registry_authentication_service.rb
- lib/gitlab/auth.rb 13 additions, 5 deletionslib/gitlab/auth.rb
- spec/lib/gitlab/auth_spec.rb 99 additions, 52 deletionsspec/lib/gitlab/auth_spec.rb
- spec/policies/project_policy_spec.rb 2 additions, 2 deletionsspec/policies/project_policy_spec.rb
- spec/services/auth/container_registry_authentication_service_spec.rb 1 addition, 1 deletion...es/auth/container_registry_authentication_service_spec.rb
Please register or sign in to comment