Changes between Initial Version and Version 5 of Ticket #30226
- Timestamp:
- Mar 8, 2019, 9:24:02 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #30226
- Property Triage Stage Unreviewed → Accepted
- Property Summary Simplify authentication backend interface → Add base authentication backend to ease custom backend creation.
- Property Type Cleanup/optimization → New feature
- Property Version 2.1 → master
-
Ticket #30226 – Description
initial v5 1 1 Currently, 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. 2 2 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 conf isuing for backend authors.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 confusing for backend authors. 4 4 5 5 Mailinglist thread: https://groups.google.com/forum/#!topic/django-developers/CNmz22gEsCc