Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Support custom attributes on users | Markus Koller | 2017-09-28 | 1 | -0/+2 |
| | |||||
* | refactor emails servicerefactor-services | James Lopez | 2017-09-28 | 1 | -4/+4 |
| | |||||
* | refactor users update service | James Lopez | 2017-09-28 | 1 | -1/+1 |
| | |||||
* | refactor services to match EE signature | James Lopez | 2017-09-28 | 1 | -5/+5 |
| | |||||
* | find_user users helper method no longer overrides find_user API helper method.37467-helper-method-from-users-endpoint-overrides-api-helper-method | Tiago Botelho | 2017-09-26 | 1 | -2/+2 |
| | |||||
* | Ensure we use `Entities::User` for non-admin `users/:id` API requests | Robert Speicher | 2017-09-15 | 1 | -1/+1 |
| | |||||
* | API: Add GPG key management for admins | Robert Schilling | 2017-09-05 | 1 | -0/+80 |
| | |||||
* | API: Add GPG key management | Robert Schilling | 2017-09-05 | 1 | -0/+70 |
| | |||||
* | Update remaining endpoints | Robert Schilling | 2017-08-28 | 1 | -2/+5 |
| | |||||
* | Conditionally destroy a ressource | Robert Schilling | 2017-08-28 | 1 | -34/+13 |
| | |||||
* | API: Respect the 'If-Unmodified-Since' for delete endpoints | Robert Schilling | 2017-08-28 | 1 | -0/+28 |
| | |||||
* | Include the `is_admin` field in the `GET /users/:id` API when current user ↵ | Rémy Coutable | 2017-08-11 | 1 | -9/+4 |
| | | | | | | is an admin Signed-off-by: Rémy Coutable <remy@rymai.me> | ||||
* | Update grape gemdz-update-grape | Dmitriy Zaporozhets | 2017-07-20 | 1 | -0/+5 |
| | | | | | | | | New version of the gem returns 200 status code on delete with content instead of 204 so we explicitly set status code to keep existing behavior Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | ||||
* | Return `is_admin` attribute in the GET /user endpoint for admins | Rémy Coutable | 2017-07-12 | 1 | -1/+10 |
| | | | | Signed-off-by: Rémy Coutable <remy@rymai.me> | ||||
* | fix specs | James Lopez | 2017-07-07 | 1 | -1/+1 |
| | |||||
* | add created at filter logic to users finder and API | James Lopez | 2017-07-07 | 1 | -0/+6 |
| | |||||
* | Merge branch 'master' into '33580-fix-api-scoping' | Douwe Maan | 2017-07-04 | 1 | -9/+20 |
|\ | | | | | | | # Conflicts: # lib/api/users.rb | ||||
| * | Simplify authentication logic in the v4 users API for !12445. | Timothy Andrew | 2017-07-04 | 1 | -1/+8 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Rather than using an explicit check to turn off authentication for the `/users` endpoint, simply call `authenticate_non_get!`. - All `GET` endpoints we wish to restrict already call `authenticated_as_admin!`, and so remain inacessible to anonymous users. - This _does_ open up the `/users/:id` endpoint to anonymous access. It contains the same access check that `/users` users, and so is safe for use here. - More context: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/12445#note_34031323 | ||||
| * | Merge remote-tracking branch 'origin/master' into ↵ | Timothy Andrew | 2017-06-30 | 1 | -10/+10 |
| |\ | | | | | | | | | | | | | | | | | | | 34141-allow-unauthenticated-access-to-the-users-api - Modify policy code to work with the `DeclarativePolicy` refactor in 37c401433b76170f0150d70865f1f4584db01fa8. | ||||
| * | | Implement review comments for !12445 from @godfat and @rymai. | Timothy Andrew | 2017-06-30 | 1 | -15/+11 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Use `GlobalPolicy` to authorize the users that a non-authenticated user can fetch from `/api/v4/users`. We allow access if the `Gitlab::VisibilityLevel::PUBLIC` visibility level is not restricted. - Further, as before, `/api/v4/users` is only accessible to unauthenticated users if the `username` parameter is passed. - Turn off `authenticate!` for the `/api/v4/users` endpoint by matching on the actual route + method, rather than the description. - Change the type of `current_user` check in `UsersFinder` to be more compatible with EE. | ||||
| * | | Allow unauthenticated access to the `/api/v4/users` API. | Timothy Andrew | 2017-06-26 | 1 | -6/+17 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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)` | ||||
* | | | Initial attempt at refactoring API scope declarations. | Timothy Andrew | 2017-06-28 | 1 | -1/+3 |
| |/ |/| | | | | | | | | | | | | | | | | | - Declaring an endpoint's scopes in a `before` block has proved to be unreliable. For example, if we're accessing the `API::Users` endpoint - code in a `before` block in `API::API` wouldn't be able to see the scopes set in `API::Users` since the `API::API` `before` block runs first. - This commit moves these declarations to the class level, since they don't need to change once set. | ||||
* | | fix spec failures | James Lopez | 2017-06-24 | 1 | -1/+1 |
| | | |||||
* | | fix spec failures | James Lopez | 2017-06-23 | 1 | -4/+4 |
| | | |||||
* | | refactor update user service not to do auth checks | James Lopez | 2017-06-23 | 1 | -1/+1 |
| | | |||||
* | | fix spec failures | James Lopez | 2017-06-23 | 1 | -4/+6 |
| | | |||||
* | | refactor emails service | James Lopez | 2017-06-23 | 1 | -8/+0 |
| | | |||||
* | | update missing email actions | James Lopez | 2017-06-23 | 1 | -6/+4 |
| | | |||||
* | | fix specs | James Lopez | 2017-06-23 | 1 | -2/+2 |
| | | |||||
* | | update to use emails destroy service | James Lopez | 2017-06-23 | 1 | -2/+3 |
| | | |||||
* | | fixed specs | James Lopez | 2017-06-23 | 1 | -1/+1 |
| | | |||||
* | | added service in the rest of controllers and classes | James Lopez | 2017-06-23 | 1 | -2/+2 |
| | | |||||
* | | fix api and controller issues | James Lopez | 2017-06-23 | 1 | -2/+7 |
| | | |||||
* | | update notification settings, fix api specs | James Lopez | 2017-06-23 | 1 | -1/+3 |
|/ | |||||
* | Enable Style/DotPosition Rubocop :cop: | Grzegorz Bizon | 2017-06-21 | 1 | -13/+13 |
| | |||||
* | Re-instate is_admin flag in users API is current user is an admin | Mike Ricketts | 2017-06-20 | 1 | -1/+1 |
| | |||||
* | Accept image for avatar in user API | vanadium23 | 2017-06-16 | 1 | -0/+1 |
| | |||||
* | Merge branch '2563-backport-ee1942' into 'master' | Grzegorz Bizon | 2017-06-07 | 1 | -4/+0 |
|\ | | | | | | | | | | | | | Backport some EE changes from adding shared_runners_minutes_limit to the API Closes gitlab-ee#2563 See merge request !11936 | ||||
| * | Backport https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/1942 | Lin Jen-Shin | 2017-06-06 | 1 | -4/+0 |
| | | |||||
* | | Introduce an Events API | Mark Fletcher | 2017-06-06 | 1 | -21/+0 |
|/ | | | | | | | | | | | * Meld the following disparate endpoints: * `/projects/:id/events` * `/events` * `/users/:id/events` + Add result filtering to the above endpoints: * action * target_type * before and after dates | ||||
* | Refactor the DeleteUserWorker | Nick Thomas | 2017-06-05 | 1 | -1/+1 |
| | |||||
* | Allow users to be hard-deleted from the API | Nick Thomas | 2017-06-02 | 1 | -1/+2 |
| | |||||
* | Create a Users Finder | George Andrinopoulos | 2017-05-15 | 1 | -10/+1 |
| | |||||
* | Don't display the `is_admin?` flag for user API responses. | Timothy Andrew | 2017-04-25 | 1 | -1/+1 |
| | | | | | | | | | | | - To prevent an attacker from enumerating the `/users` API to get a list of all the admins. - Display the `is_admin?` flag wherever we display the `private_token` - at the moment, there are two instances: - When an admin uses `sudo` to view the `/user` endpoint - When logging in using the `/session` endpoint | ||||
* | Merge branch 'query-users-by-extern-uid' into 'master' | Robert Speicher | 2017-04-19 | 1 | -8/+14 |
|\ | | | | | | | | | Implement search by extern_uid in Users API See merge request !10509 | ||||
| * | Implement search by extern_uid in Users API | Robin Bobbitt | 2017-04-18 | 1 | -8/+14 |
| | | |||||
* | | Remove unused user activities code | Sean McGivern | 2017-04-14 | 1 | -1/+0 |
| | | |||||
* | | Expose `last_activity_on` in the User API | Rémy Coutable | 2017-04-14 | 1 | -8/+6 |
| | | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me> | ||||
* | | Port 'Add user activities API' to CE | Sean McGivern | 2017-04-14 | 1 | -0/+18 |
|/ | | | | CE port of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/962 | ||||
* | Separate CE params on Grape API | Oswaldo Ferreira | 2017-04-10 | 1 | -0/+2 |
| |