django-apikey

Simple Key authentication for Django.Based on github.com/scoursen/django-apikey
Download

django-apikey Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Publisher Name:
  • Jorge Eduardo Cardona
  • Publisher web site:
  • http://cenuage.com

django-apikey Tags


django-apikey Description

Simple Key authentication for Django.Based on github.com/scoursen/django-apikey django-apikey is a Django app that provides key authentication for Django. Can be used with django-piston easily.Based on https://github.com/scoursen/django-apikey.Installationpip install django-apikeyConfigurationAdd 'apikey' to your settings.py:INSTALLED_APPS = (...'apikey',....)You can change the authorization header by setting the APIKEY_AUTHORIZATION_HEADER in settings.py:APIKEY_AUTHORIZATION_HEADER = 'App-Authorization'To add api authentication with piston do thisin your handlers.from apikey.auth import ApiKeyAuthenticationfrom piston.handler import BaseHandlerfrom piston.resource import Resourcefrom myapp.models import Itemclass ItemHandler(BaseHandler): allowed = ('GET', ) model = Item def read(self): return Item.objects.all()handler = Resource( handler=ItemHandler, authentication=ApiKeyAuthentication())ThanksThis project is base on the one of Steve Course https://github.com/scoursen/django-apikey but with several simplifications. Requirements: · Python · Django


django-apikey Related Software