mirror of
https://github.com/jazzband/django-defender.git
synced 2026-03-16 22:10:32 +00:00
Doc: BasicAuthenticationDefender should precede other auth classes (#80)
This commit is contained in:
parent
69db1cfb70
commit
11ee7bc233
1 changed files with 2 additions and 2 deletions
|
|
@ -354,7 +354,7 @@ Adapting to other authentication method
|
|||
--------------------
|
||||
|
||||
`defender` can be used for authentication other than `Django authentication system`.
|
||||
E.g. if `django-rest-framework` authentication has to be protected from brute force attack,custom authentication method can be implemented.
|
||||
E.g. if `django-rest-framework` authentication has to be protected from brute force attack, a custom authentication method can be implemented.
|
||||
|
||||
There's sample `BasicAuthenticationDefender` class based on `djangorestframework.BasicAuthentication`:
|
||||
|
||||
|
|
@ -431,7 +431,7 @@ class BasicAuthenticationDefender(BasicAuthentication):
|
|||
|
||||
```
|
||||
|
||||
To make it works add `BasicAuthenticationDefender` to `DEFAULT_AUTHENTICATION_CLASSES` in your `settings.py`.
|
||||
To make it works add `BasicAuthenticationDefender` to `DEFAULT_AUTHENTICATION_CLASSES` above all other authentication methods in your `settings.py`.
|
||||
|
||||
Running Tests
|
||||
=============
|
||||
|
|
|
|||
Loading…
Reference in a new issue