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.4.1 (2012/12/03)
Added logging to backend and login view
0.4 (2012/11/27)
Fixed validation bugs in Range
Made range collision validation errors more verbose
0.3 (2012/10/22)
Fixed a validation bug for IPAddressFormField
0.2 (2011/06/23)
Made the upper end of the range optional
Fixed a bug in the Range model clean method if upper is null
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
Release files for django-ipauth 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-ipauth-0.4.1.tar.gz | 5.1 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_ipauth-0.4.1-py2.7.egg | Legacy Egg format | - | - | Details |
| django_ipauth-0.4.1-py2.6.egg | Legacy Egg format | - | - | Details |
Total release size: 30.5 kB
Release files / django-ipauth-0.4.1.tar.gz
| Download URL | django-ipauth-0.4.1.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d54247d3f207adde3f7d1244f7a71ed02cca55ee6083241e12b34ffdad2a908b
|
|
BLAKE2b-256 checksum How to use checksums |
a63f2f31b5db56ff4f3c156bf4ab0627b058a31ee1fb948c9fe44a7e2f95b211
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_ipauth-0.4.1-py2.7.egg
| Download URL | django_ipauth-0.4.1-py2.7.egg |
|---|---|
| Size | 12.7 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
cb08c634160181ca6d54231cc1b058a985b9fc5e7408a88cccc778e6bb5e8c08
|
|
BLAKE2b-256 checksum How to use checksums |
4b7179daf9053f3a5329f625cec6e2e7d86b63aa81576b357ffccc997f3d8f84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_ipauth-0.4.1-py2.6.egg
| Download URL | django_ipauth-0.4.1-py2.6.egg |
|---|---|
| Size | 12.7 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
3a3eacf68d229abb94b302005f0d99b0e9c461307382a730cfe4f1897d99839c
|
|
BLAKE2b-256 checksum How to use checksums |
cf43e41c380c1b07f0e11e05663c0de5eaaffeaaa1c1bf8411ba3dbfb6432de3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |