django.contrib.auth.authenticate should emit a signal on success

51 views
Skip to first unread message

Draken

unread,
Jul 4, 2018, 6:54:03 PM7/4/18
to Django developers (Contributions to Django itself)
Some libraries, like django-rest-framework-jwt, call django.contrib.auth.authenticate, but not django.contrib.auth.login, to implement their custom authentication system. Thus, to make customizing these kinds of auth systems easier, I'd think it would be reasonable that authenticate() emit a signal. It could even emit the django.contrib.auth.signals.user_logged_in signal under a different name.
Reply all
Reply to author
Forward
0 new messages