Changes between Initial Version and Version 5 of Ticket #30226


Ignore:
Timestamp:
Mar 8, 2019, 9:24:02 AM (6 years ago)
Author:
Tobias Bengfort
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30226

    • Property Triage Stage UnreviewedAccepted
    • Property Summary Simplify authentication backend interfaceAdd base authentication backend to ease custom backend creation.
    • Property Type Cleanup/optimizationNew feature
    • Property Version 2.1master
  • Ticket #30226 – Description

    initial v5  
    11Currently, writing a new authentication backend requires quite some boilerplate e.g. `has_perm()` can be derived from `get_all_permissions()` which in turn can be derived from `get_user_permissions()` and `get_group_permissions()`. Additionally, `authenticate()` and `get_user()` should always return `None` for backends that only handle permissions.
    22
    3 Also note that `get_all_permissions()` and `get_group_permissions()` exist on the User model, but `get_user_permissions()` does not. I think this is confisuing for backend authors.
     3Also note that `get_all_permissions()` and `get_group_permissions()` exist on the User model, but `get_user_permissions()` does not. I think this is confusing for backend authors.
    44
    55Mailinglist thread: https://groups.google.com/forum/#!topic/django-developers/CNmz22gEsCc
Back to Top