1. 28 6月, 2017 1 次提交
    • T
      Initial attempt at refactoring API scope declarations. · 6f192250
      Timothy Andrew 提交于
      - 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.
      6f192250
  2. 09 6月, 2017 1 次提交
  3. 08 6月, 2017 2 次提交
    • D
      Bring in security changes from the 9.2.5 release · 565ead61
      DJ Mountney 提交于
      Ran:
       - git format-patch v9.2.2..v9.2.5 --stdout > patchfile.patch
       - git checkout -b 9-2-5-security-patch origin/v9.2.2
       - git apply patchfile.patch
       - git commit
       - [Got the sha ref for the commit]
       - git checkout -b upstream-9-2-security master
       - git cherry-pick <SHA of the patchfile commit>
       - [Resolved conflicts]
       - git cherry-pick --continue
      565ead61
    • D
      Bring in security changes from the 9.2.5 release · 1d1363e2
      DJ Mountney 提交于
      Ran:
       - git format-patch v9.2.2..v9.2.5 --stdout > patchfile.patch
       - git checkout -b 9-2-5-security-patch origin/v9.2.2
       - git apply patchfile.patch
       - git commit
       - [Got the sha ref for the commit]
       - git checkout -b upstream-9-2-security master
       - git cherry-pick <SHA of the patchfile commit>
       - [Resolved conflicts]
       - git cherry-pick --continue
      1d1363e2
  4. 06 6月, 2017 1 次提交
    • M
      Introduce an Events API · ad3e180e
      Mark Fletcher 提交于
      * 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
      ad3e180e
  5. 01 6月, 2017 1 次提交
  6. 30 5月, 2017 1 次提交
  7. 25 5月, 2017 1 次提交
  8. 04 5月, 2017 2 次提交
  9. 22 3月, 2017 1 次提交
  10. 07 3月, 2017 2 次提交
  11. 06 3月, 2017 3 次提交
  12. 03 3月, 2017 1 次提交
  13. 02 3月, 2017 3 次提交
  14. 01 3月, 2017 1 次提交
  15. 28 2月, 2017 1 次提交
  16. 24 2月, 2017 1 次提交
  17. 22 2月, 2017 4 次提交
  18. 21 2月, 2017 1 次提交
  19. 17 2月, 2017 1 次提交
  20. 16 2月, 2017 2 次提交
  21. 13 2月, 2017 1 次提交
  22. 10 2月, 2017 1 次提交
  23. 07 2月, 2017 2 次提交
  24. 06 2月, 2017 1 次提交
  25. 31 1月, 2017 1 次提交
  26. 09 1月, 2017 1 次提交
  27. 16 12月, 2016 1 次提交
    • T
      Calls to the API are checked for scope. · 7fa06ed5
      Timothy Andrew 提交于
      - Move the `Oauth2::AccessTokenValidationService` class to
        `AccessTokenValidationService`, since it is now being used for
        personal access token validation as well.
      
      - Each API endpoint declares the scopes it accepts (if any). Currently,
        the top level API module declares the `api` scope, and the `Users` API
        module declares the `read_user` scope (for GET requests).
      
      - Move the `find_user_by_private_token` from the API `Helpers` module to
        the `APIGuard` module, to avoid littering `Helpers` with more
        auth-related methods to support `find_user_by_private_token`
      7fa06ed5
  28. 02 12月, 2016 1 次提交