gitlab-org--gitlab-foss/spec/requests
Timothy Andrew 20f679d620 Allow unauthenticated access to the /api/v4/users API.
- The issue filtering frontend code needs access to this API for non-logged-in
  users + public projects. It uses the API to fetch information for a user by
  username.

- We don't authenticate this API anymore, but instead - if the `current_user` is
  not present:

  - Verify that the `username` parameter has been passed. This disallows an
    unauthenticated user from grabbing a list of all users on the instance. The
    `UsersFinder` class performs an exact match on the `username`, so we are
    guaranteed to get 0 or 1 users.
  - Verify that the resulting user (if any) is accessible to be viewed publicly
    by calling `can?(current_user, :read_user, user)`
2017-06-26 07:20:30 +00:00
..
api Allow unauthenticated access to the /api/v4/users API. 2017-06-26 07:20:30 +00:00
ci/api Enable Style/DotPosition Rubocop 👮 2017-06-21 13:48:12 +00:00
projects Add transient head_pipeline_of to pipeline factories 2017-05-22 17:06:45 -03:00
git_http_spec.rb Enable Style/DotPosition Rubocop 👮 2017-06-21 13:48:12 +00:00
jwt_controller_spec.rb Correct RSpec/SingleLineHook cop offenses 2017-06-14 13:18:56 -05:00
lfs_http_spec.rb Specify new Git-LFS-over-HTTP behavior 2017-06-05 05:32:26 -07:00
openid_connect_spec.rb Bring in security changes from the 9.2.5 release 2017-06-07 21:16:20 -07:00
request_profiler_spec.rb Add specs for Gitlab::RequestProfiler 2017-05-01 17:32:45 +02:00