Added login rate limiting feature in Djblets auth and web api

Review Request #8698 - Created Jan. 31, 2017 and updated

Raman Dhatt
Djblets
master
8839, 8768
f4c1fb1...
djblets, students

There's been a request to create a rate-limit for failed logins through either the UI or API. I have created a main ratelimit.py file that will allow rate limiting of failed login attempts by either an authenticated user or an IP address. See review request 8768 to see it's implementation in reviewboard's authentication form.

Create several unit tests to ensure the login rate limiting feature works in the web API and UI, whether the rate limits are custom or default values. They are currently passing in djblets/auth/tests/test_ratelimit.py and in webapi/tests/test_api_auth_backend.py.

  • 1
  • 310
  • 82
  • 393
Description From Last Updated
It seems very complex to define a class for this which has a classmethod to parse a string, instantiates and ... David Trowbridge David Trowbridge
Review Bot
Raman Dhatt
Review Bot
Barret Rennie
Raman Dhatt
Review Bot
Raman Dhatt
Review Bot
David Trowbridge
Raman Dhatt
Review Bot
Raman Dhatt
Review Bot
Raman Dhatt
Review Bot
Raman Dhatt
Review Bot
Raman Dhatt
Review Bot
Raman Dhatt
Review Bot
Raman Dhatt
Review Bot
David Trowbridge
Barret Rennie
Raman Dhatt
Review Bot
Raman Dhatt
Review Bot
Raman Dhatt
Review Bot
Raman Dhatt
Review Bot
Raman Dhatt
Review Bot
Raman Dhatt
Review Bot
Raman Dhatt
Review Bot
Raman Dhatt
Raman Dhatt
Review Bot
Raman Dhatt
Review Bot
Raman Dhatt
Review Bot
Raman Dhatt
Review Bot
Christian Hammond