Skip to main content

django-authanon

pipline

Allows permissions for an anonymous user and a generic signed-in user to be set as groups.

Installation

pip install django-authanon

Then add to your INSTALLED_APPS:

INSTALLED_APPS += [
    "authanon",
]

Then add to your AUTHENTICATION_BACKENDS:

AUTHENTICATION_BACKENDS += [
    "authanon.backends.AuthanonBackend",
]

Usage

This app creates two groups, one for anonymous users who aren't logged in and one group for users who are logged in. You can add permissions to these groups in the admin console in the 'Groups' section under the 'AUTHENTICATION AND AUTHORIZATION' section.

To display the permissions for these two groups on the command line, use this command.

./manage.py authanon

These groups are automatically created when anonymous users or logged-in users try to access pages. If you find they haven't been created yet, use the ./manage.py authanon command and then the groups will appear in the admin.

Configuration

By default, the two groups are called Anonymous and Login Users. You can change them by variables to the settings with the names AUTHANON_ANONYMOUS_GROUP or AUTHANON_LOGIN_GROUP.

Credits

Package authored by Robert Turnbull (Melbourne Data Analytics Platform)

Inspired by this Stack Overflow answer: https://stackoverflow.com/a/31520798 (User: jozxyqk)

Metadata

Release files for django-authanon 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-authanon 0.1.2
File Size Uploaded Provenance
django-authanon-0.1.2.tar.gz 7.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for django-authanon 0.1.2
File Interpreter ABI Platform
django_authanon-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 15.0 kB

Release files / django-authanon-0.1.2.tar.gz

Download URL django-authanon-0.1.2.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e45653d6bd32178f9bbb3be0c4690a33616525960c064d9c330fb4bea53fa940
BLAKE2b-256 checksum
How to use checksums
87b411d9703b5457eef8bc4d09bc4c3bd8e2489a142dc1458fd9046bcbff9e35
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.11 CPython/3.9.7 Darwin/19.5.0

Release files / django_authanon-0.1.2-py3-none-any.whl

Download URL django_authanon-0.1.2-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
67f9828b6ab22081cfd2842e61ee75956f9b7b27c07a0a9b900fd31b02839448
BLAKE2b-256 checksum
How to use checksums
2ea5d6ead5f7bb3f80559a84714267d3e796656b0e3eb7c97b9237051b009f1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.11 CPython/3.9.7 Darwin/19.5.0

Security for django-authanon 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page