horizon/openstack_auth
Stephen Finucane fff89e69df django22: Add 'request' as first argument to 'authenticate'
As noted in the Django 2.1 release notes [1]:

  The authenticate() method of authentication backends requires request
  as the first positional argument.

This can be seen here [2]. Simple enough, though it took me ages to
figure this out because Django gave me *zero* warning that a backend
because of this change. Heck, raising the TypeError would have helped :(

[1] https://docs.djangoproject.com/en/2.2/releases/2.1/#features-removed-in-2-1
[2] https://github.com/django/django/commit/5e31be1b96f

Change-Id: I0dd37d33c8e42a70c00a9f1460c1cec86c5b6006
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2019-08-27 11:19:25 +01:00
..
locale Imported Translations from Zanata 2019-08-06 09:39:07 +00:00
plugin Fix :param: in docstring 2019-06-14 17:07:39 +08:00
tests fix checking if enforcer was loaded 2018-12-22 22:42:54 +09:00
__init__.py Add Django OpenStack Auth to Horizon 2017-09-27 12:06:57 +01:00
backend.py django22: Add 'request' as first argument to 'authenticate' 2019-08-27 11:19:25 +01:00
exceptions.py pylint: fix unnecessary-pass warning 2019-01-16 13:10:16 +09:00
forms.py Properly calculate auth_url for WEBSSO from POST data 2018-10-31 14:49:06 +01:00
middleware.py Fix django.contrib.auth.middleware monkey patching 2018-11-06 21:36:45 +00:00
models.py Add Django OpenStack Auth to Horizon 2017-09-27 12:06:57 +01:00
policy.py Remove token object from credentials 2019-04-09 18:00:41 +03:00
urls.py Fix django.contrib.auth.middleware monkey patching 2018-11-06 21:36:45 +00:00
user.py pylint: fix several coding convention violations 2019-01-17 00:05:27 +09:00
utils.py Cleanup unused util functions 2019-06-21 15:10:57 +00:00
views.py django22: Add 'request' as first argument to 'authenticate' 2019-08-27 11:19:25 +01:00