Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Django AuthenticationBackends to work with Django user #573

Merged
merged 1 commit into from
Oct 1, 2012
Merged

Allow Django AuthenticationBackends to work with Django user #573

merged 1 commit into from
Oct 1, 2012

Conversation

garrypolley
Copy link

Updated the mongoengine.django.auth.User so that authentication backends can use permissions.

Currently if you attempt to use an AuthenticationBackend that has a has_perm method, this will error out because the mongoengine User does not have a has_perm or a get_all_permissions method.

The methods I have added are nearly a complete copy paste from the existing Django User. The imported underscore functions spin through the backends and check permissions as the backend is programmed to do.

rozza added a commit that referenced this pull request Oct 1, 2012
Allow Django  AuthenticationBackends to work with Django user

Thanks @garrypolley
@rozza rozza merged commit 9f8d6b3 into hmarr:master Oct 1, 2012
@rozza
Copy link

rozza commented Oct 1, 2012

Thanks @garrypolley

rozza added a commit to MongoEngine/mongoengine that referenced this pull request Oct 1, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants