Skip to main content

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.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

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

django-ipauth-0.4.tar.gz (4.9 kB view details)

Uploaded Source

Built Distributions

django_ipauth-0.4-py2.7.egg (12.2 kB view details)

Uploaded Source

django_ipauth-0.4-py2.6.egg (12.2 kB view details)

Uploaded Source

File details

Details for the file django-ipauth-0.4.tar.gz.

File metadata

  • Download URL: django-ipauth-0.4.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-ipauth-0.4.tar.gz
Algorithm Hash digest
SHA256 0d3bd16ec7e17d065d9fc6d0121975e957318db56bf5bd62799c0a0655049e31
MD5 1e4c48bdd3613732779a25ca0044e228
BLAKE2b-256 6a7bd00016eb1b11ba889c9a0a6263e6f781b3cdc9472bba8099eec6effdd067

See more details on using hashes here.

File details

Details for the file django_ipauth-0.4-py2.7.egg.

File metadata

File hashes

Hashes for django_ipauth-0.4-py2.7.egg
Algorithm Hash digest
SHA256 9d379801b29caa022e35fc17ece31731a4bbd9747120458d3b5978086c66e9f6
MD5 fe6b818e24148bb80fc62fac26e39826
BLAKE2b-256 ceedad3c4f7902b2add0f4ef7163720b5aa2fe479161df9f5b4ddc5692b4104e

See more details on using hashes here.

File details

Details for the file django_ipauth-0.4-py2.6.egg.

File metadata

File hashes

Hashes for django_ipauth-0.4-py2.6.egg
Algorithm Hash digest
SHA256 4224be9de4e5adfa9b650b7b9ee05c8ef3877e00eba8e2ef7dd7659870e6bb1d
MD5 c8d3ff5d087c1dede9d4404c70a5a29c
BLAKE2b-256 76380c7b49d8fbd5abf3e03669cdd9dfe87f90eef7a11225e5b98e96ea752397

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