Clean up BaseAuthBackend and rename/future-proof some methods.
Review Request #9990 — Created May 31, 2018 and submitted — Latest diff uploaded
BaseAuthBackend
(formerlyAuthBackend
) has been around a long time,
and has gained some cruft over the years, in the forms of capability
flags that Django no longer needs to functions that don't have the most
clear names.Those capability flags have now been removed, and the methods have been
renamed and made expandable through the introduction of**kwargs
.
query_users()
has been renamed topopulate_users()
, and
search_users()
has been renamed tobuild_search_users_query()
. These
better reflect the purposes of the methods.Both renamed methods will look for the legacy versions and, if found,
call them and warn, helping the third-party backends that use these
features in their migration efforts.
Unit tests pass.