Skip to main content

Django-nonrel authentication backend to support permissions and groups

Project description

Django-permission-backend-nonrel

A Django authentication backend that supports Django’s user and group permissions on Django-Nonrel.

Installation

  • Get the code from Github:

    git clone https://github.com/django-nonrel/django-permission-backend-nonrel.git

  • add permission_backend_nonrel.backends.NonrelPermissionBackend to your AUTHENTICATION_BACKENDS and permission_backend_nonrel to your INSTALLED_APPS

    settings.py:

    AUTHENTICATION_BACKENDS = (
        ...
        'permission_backend_nonrel.backends.NonrelPermissionBackend',
    )
    
    INSTALLED_APPS = (
        ...
        'permission_backend_nonrel',
    )
  • It’s important to put ‘permission_backend_nonrel after djangotoolbox, because permission_backend_nonrel.admin replaces djangotoolbox’s User admin site.

    Permission and groups can be assigned and modified via Django’s admin interface:

    Django-nonrel admin with user_permissions and groups

    Django-gaeauth admin interface with user_permissions and groups

  • Now you should be able to use all the standard Django permission methods and decorators, like user.has_perm(‘foo’) and so on.

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

permission-backend-nonrel-0.2.tar.gz (4.9 kB view details)

Uploaded Source

File details

Details for the file permission-backend-nonrel-0.2.tar.gz.

File metadata

File hashes

Hashes for permission-backend-nonrel-0.2.tar.gz
Algorithm Hash digest
SHA256 f32c5ce7edb6e6446158cbd2c6d0ab206212f379b08b195db9d93543d129b03d
MD5 fd781786ae62bc064dcc3cfaaadb2b9c
BLAKE2b-256 8ef667597879d9d2b3ae50b7a75b7c3e87fbec3bb2befbb45309632360100d8e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page