Rate limit by user instead of IP when API user is authenticated (#5923)
* Fix #668 - Rate limit by user instead of IP when API user is authenticated * Fix code style issue * Use request decorator provided by Doorkeeper
Showing
- app/controllers/concerns/rate_limit_headers.rb 2 additions, 1 deletionapp/controllers/concerns/rate_limit_headers.rb
- config/initializers/rack_attack.rb 41 additions, 14 deletionsconfig/initializers/rack_attack.rb
- spec/controllers/concerns/rate_limit_headers_spec.rb 1 addition, 1 deletionspec/controllers/concerns/rate_limit_headers_spec.rb
Please register or sign in to comment