#26480: TypeError in authenticate decorated by sensitive_variables
------------------------------+--------------------
     Reporter:  tpazderka     |      Owner:  nobody
         Type:  Bug           |     Status:  new
    Component:  contrib.auth  |    Version:  master
     Severity:  Normal        |   Keywords:
 Triage Stage:  Unreviewed    |  Has patch:  0
Easy pickings:  0             |      UI/UX:  0
------------------------------+--------------------
 When the method `authenticate` of a custom AuthenticationBackend is
 decorated with `sensitive_variables`, `inspect.getcallargs` will always
 match.

 Calling the `authenticate` function will attempt to call this backend with
 any set of credentials and will raise an uncaught `TypeError` for an
 unmatching backend.

 Authentication with such decorated backends used to work in version 1.6.

--
Ticket URL: <https://code.djangoproject.com/ticket/26480>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.a2d84d98a7090b9fd5fb07503e31bfa1%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to