mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #25187 -- Made request available in authentication backends.
This commit is contained in:
committed by
Tim Graham
parent
32c0d823e5
commit
4b9330ccc0
@@ -113,6 +113,10 @@ Minor features
|
||||
allows using the authentication system :ref:`without any of the built-in
|
||||
models <using-auth-without-models>`.
|
||||
|
||||
* The ``HttpRequest`` is now passed to :func:`~django.contrib.auth.authenticate`
|
||||
which in turn passes it to the authentication backend if it accepts a
|
||||
``request`` argument.
|
||||
|
||||
:mod:`django.contrib.contenttypes`
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
@@ -556,3 +560,7 @@ Miscellaneous
|
||||
|
||||
* ``DatabaseIntrospection.get_indexes()`` is deprecated in favor of
|
||||
``DatabaseIntrospection.get_constraints()``.
|
||||
|
||||
* :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.
|
||||
|
||||
Reference in New Issue
Block a user