{ "info": { "author": "LocalMed", "author_email": "pete.browne@localmed.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Topic :: Internet :: WWW/HTTP" ], "description": "Django Header Auth\n==================\n\nAn extremely simple Django middleware for authorizing requests based on headers.\n\nInstallation\n------------\n\n1. Install via pip:\n\n :::bash\n $ pip install django-header-auth\n\n2. Add the `HeaderAuthMiddleware`:\n\n :::python\n MIDDLEWARE_CLASSES = (\n # ...\n 'header_auth.middleware.HeaderAuthMiddleware',\n # ...\n )\n\nUsage\n-----\n\nAdd a `HEADER_AUTH` dict containing the headers you'd like to check to the settings file:\n\n :::python\n HEADER_AUTH = {\n 'HTTP_X_SOME_HEADER': 'sometoken',\n 'HTTP_X_ANOTHER_HEADER': 'anothertoken',\n }\n\nThe request's headers will be checked for 'X-Some-Header: sometoken' and 'X-Another-Header: anothertoken' and simply pass through if everything is ok. Otherwise a 403 Forbidden will be returned.\n\nCopyright\n---------\n\nCopyright (c) 2013 [LocalMed, Inc.](http://www.localmed.com/). See LICENSE for details.\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/localmed/django-header-auth", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "django-header-auth", "package_url": "https://pypi.org/project/django-header-auth/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-header-auth/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://bitbucket.org/localmed/django-header-auth" }, "release_url": "https://pypi.org/project/django-header-auth/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "Django middleware for authorizing requests based on headers.", "version": "0.1.0" }, "last_serial": 955960, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "af75aa645186e53d8f87532d89f0fe63", "sha256": "f703dc4c860c0743852838151b9143ce0a7bddec9be799062e56543b4a70b47e" }, "downloads": -1, "filename": "django-header-auth-0.1.0.tar.gz", "has_sig": false, "md5_digest": "af75aa645186e53d8f87532d89f0fe63", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3517, "upload_time": "2013-12-28T17:57:37", "url": "https://files.pythonhosted.org/packages/08/9a/eaf407d0bb41407883cea28e9ce92dda936c7ac10dcaf9aa6c3fc79ad331/django-header-auth-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "af75aa645186e53d8f87532d89f0fe63", "sha256": "f703dc4c860c0743852838151b9143ce0a7bddec9be799062e56543b4a70b47e" }, "downloads": -1, "filename": "django-header-auth-0.1.0.tar.gz", "has_sig": false, "md5_digest": "af75aa645186e53d8f87532d89f0fe63", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3517, "upload_time": "2013-12-28T17:57:37", "url": "https://files.pythonhosted.org/packages/08/9a/eaf407d0bb41407883cea28e9ce92dda936c7ac10dcaf9aa6c3fc79ad331/django-header-auth-0.1.0.tar.gz" } ] }