Refs #25187 -- Fixed AuthBackend.authenticate() compatibility for signatures that accept a request kwarg.

This commit is contained in:
Tim Graham 2017-02-24 10:15:41 -05:00 committed by GitHub
parent 8d4885ede5
commit c31e7ab5a4
4 changed files with 47 additions and 10 deletions

View file

@ -52,8 +52,8 @@ details on these changes.
* ``DatabaseIntrospection.get_indexes()`` will be removed.
* The ``authenticate()`` method of authentication backends will require a
``request`` argument.
* The ``authenticate()`` method of authentication backends will require
``request`` as the first positional argument.
* The ``django.db.models.permalink()`` decorator will be removed.

View file

@ -796,7 +796,8 @@ Miscellaneous
* :func:`~django.contrib.auth.authenticate` now passes a ``request`` argument
to the ``authenticate()`` method of authentication backends. Support for
methods that don't accept ``request`` will be removed in Django 2.1.
methods that don't accept ``request`` as the first positional argument will
be removed in Django 2.1.
* The ``USE_ETAGS`` setting is deprecated in favor of
:class:`~django.middleware.http.ConditionalGetMiddleware` which now adds the