class ModelBackend(BaseBackend):
Known subclasses: django.contrib.auth.backends.AllowAllUsersModelBackend
, django.contrib.auth.backends.RemoteUserBackend
Method | authenticate |
Undocumented |
Method | get_all_permissions |
Undocumented |
Method | get_group_permissions |
Return a set of permission strings the user user_obj has from the groups they belong. |
Method | get_user_permissions |
Return a set of permission strings the user user_obj has from their user_permissions . |
Method | has_module_perms |
Return True if user_obj has any permissions in the given app_label. |
Method | has_perm |
Undocumented |
Method | user_can_authenticate |
Reject users with is_active=False. Custom user models that don't have that attribute are allowed. |
Method | with_perm |
Return users that have permission "perm". By default, filter out inactive users and include superusers. |
Method | _get_group_permissions |
Undocumented |
Method | _get_permissions |
Return the permissions of user_obj from from_name . from_name can be either "group" or "user" to return permissions from _get_group_permissions or _get_user_permissions respectively. |
Method | _get_user_permissions |
Undocumented |
Method | get_user |
Undocumented |
django.contrib.auth.backends.RemoteUserBackend
Undocumented
user_obj
has from the
groups they belong.user_obj
has from their
user_permissions
.django.contrib.auth.backends.AllowAllUsersModelBackend
, django.contrib.auth.backends.AllowAllUsersRemoteUserBackend
user_obj
from from_name
. from_name
can
be either "group" or "user" to return permissions from
_get_group_permissions
or _get_user_permissions
respectively.