• Timothy Andrew's avatar
    Allow API scope declarations to be applied conditionally. · 80c1ebaa
    Timothy Andrew authored
    - Scope declarations of the form:
    
        allow_access_with_scope :read_user, if: -> (request) { request.get? }
    
      will only apply for `GET` requests
    
    - Add a negative test to a `POST` endpoint in the `users` API to test this. Also
      test for this case in the `AccessTokenValidationService` unit tests.
    80c1ebaa
users_spec.rb 46.7 KB