authenticate issues with custom backends in 2.1rc1

42 views
Skip to first unread message

DirkBo

unread,
Jul 19, 2018, 7:08:39 AM7/19/18
to Django users
After updating from 2.0.7 to 2.1rc1 when i call django.contrib.auth.authenticate(), my custom authentication Backends are now completely ignored, only django.contrib.auth.backends.ModelBackend is used.

Is this happening for someone else or did i miss some changes? 

Tim Graham

unread,
Jul 19, 2018, 5:05:14 PM7/19/18
to Django users

From the 2.1 release notes: "The authenticate() method of authentication backends requires request as the first positional argument."

From the 1.11 release notes: "authenticate() now passes a request argument to the authenticate() method of authentication backends. Support for methods that don’t accept request as the first positional argument will be removed in Django 2.1."

Dirk B.

unread,
Jul 25, 2018, 9:39:30 AM7/25/18
to django...@googlegroups.com
Thanks! That was it! 

But no, I dont remeber ever seeing a deprecation warning about this.

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/t49_uHpbwPk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8136222c-d6a1-420a-b49d-5405ab67f977%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages