#33231: authenticate() doesn't raise ImproperlyConfigured for incorrect
authentication backends.
-------------------------------------+-------------------------------------
     Reporter:  JunKi Yoon           |                    Owner:  JunKi
                                     |  Yoon
         Type:  New feature          |                   Status:  closed
    Component:  contrib.auth         |                  Version:  3.2
     Severity:  Normal               |               Resolution:  wontfix
     Keywords:  authenticate,        |             Triage Stage:
  AUTHENTICATION_BACKENDS            |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

 * status:  assigned => closed
 * resolution:   => wontfix


Comment:

 Django supports authentication backends with different set of credentials,
 so they can have `authenticate()` methods with different signatures. For
 example:
 - `authenticate(self, request, token=None)` and
 - `authenticate(self, request, username=None, password=None)`

 once you can call it with a `token` and once with an
 `username`/`password`. Both calls are valid. That's why `TypeError` must
 be ignored (see also #31968).

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33231#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.64cb7552d7070b7d9cac563b6bd90a39%40djangoproject.com.

Reply via email to