Re: Simplify authentication backend interface

2019-01-06 Thread Aymeric Augustin
Hello Tobias, And sorry for the late answer! Yes, this is a good idea. https://docs.djangoproject.com/en/2.1/topics/auth/customizing/#handling-authorization-in-custom-backends reads more

Re: Simplify authentication backend interface

2018-11-12 Thread Collin Anderson
> Add default implementations for get_all_permissions() and has_perm(), either in PermissionMixin or in a new BaseBackend class. On a first glance, I think that makes sense to me. > Also note that the separation between user and group permissions may not be applicable with custom backends. That al

Simplify authentication backend interface

2018-11-10 Thread Tobias Bengfort
I feel like the interface for authentication backends is unnecessarily complex: Basically, you only need authenticate() and has_perm(), but currently the interface also includes get_group_permissions(), get_all_permissions(), and has_module_perms(). The architecture is like this: User inherits fro