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.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.3.tar.gz (4.7 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for django-ipauth-0.3.tar.gz
Algorithm Hash digest
SHA256 8563d7926e5463a88c099be646284b1bd9db25442028d88ae8783cea94ef8d53
MD5 97fcebae1bbb967942ef19a52df91de9
BLAKE2b-256 bcf022b30de066534267dbdcb22614aaa70740809d17f025a16fcfd32f7c9d54

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