Commit Graph

2 Commits (aeb6efbb03cd98c0425d094677fc748e0c36c240)

Author SHA1 Message Date
Eugen Rochko a865b62efc
Rate limit by user instead of IP when API user is authenticated ()
* Fix  - Rate limit by user instead of IP when API user is authenticated

* Fix code style issue

* Use request decorator provided by Doorkeeper
Matt Jankowski f0634ba876 Coverage improvement and concern extraction for rate limit headers in API controller ()
* Coverage for rate limit headers

* Move rate limit headers methods to concern

* Move throttle check to condition on before_action

* Move match_data variable into method

* Move utc timestamp to separate method

* Move header setting into smaller methods

* specs cleanup