IP Authentication for Django
Project description
Introduction
IP based authentication for Django. IP ranges are specified and tied to a user account.
Installation
Install the django-ipauth package into your path either using buildout, easy_install or pip.
- Make the following changes to your settings.py
Add ‘ipauth.backend.RangeBackend’ to your AUTHENTICATION_BACKENDS
Add ipauth to your INSTALLED_APPS
If it isn’t already, add django.contrib.auth to your INSTALLED_APPS
Change your login url to use the ipauth.views.login view.
Run manage.py syncdb
Using
If you are using the contrib.admin package from Django, you should have a new section in your admin site called Ipauth where you can add Ranges.
0.1 (2011/06/17)
IPAddressFormField for inputting IP Addresses
IPAddressModelField for storing IP addresses as integers (so math works)
Range Model for storing IP Ranges tied to a user account
Range Authentication backend
A login view wrapper that attempts to login via IP first
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-ipauth-0.1.tar.gz
.
File metadata
- Download URL: django-ipauth-0.1.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4046bc445be62a74ff78f2f0f38296868d3dbc06dd297050f07d3abab45229d |
|
MD5 | f17b934941e18632068fe8eb94999dff |
|
BLAKE2b-256 | d63f91cbf3fdfcbac089847cc00784261437be39c8c625c19729948d332480d1 |