{ "info": { "author": "Daniel Waardal", "author_email": "waawal@boom.ws", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Scientific/Engineering", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: System :: Systems Administration" ], "description": "Super simple authentication middleware for when you quickly need to password\nprotect something and don't have the time to implement rigorous authentication.\nSupports ``Flask``, ``bottle``, ``Django`` and generic ``WSGI`` servers out of the box.\n\n$ENVAUTH\n========\n\n``envauth`` looks for a ``JSON`` object in the ``ENVAUTH`` environment variable.\nThe keys are the usernames and the value contains the password for the user.\n\n.. code:: javascript\n\n {\"username\": \"password\", \"anotheruser\": \"pass1234\"}\n\nHeroku Example\n--------------\n\n``envauth`` is especially useful if you happen to be running your application on a PAAS!\n\n::\n\n $ heroku config:set ENVAUTH='{\"username\": \"password\", \"anotheruser\": \"pass1234\"}'\n Setting config vars and restarting application... done, v2\n\nExamples\n========\n\n.. image:: http://www.authenticationtutorial.com/tutorial/basiclogin.gif\n :alt: pypi\n :align: left\n :target: https://pypi.python.org/pypi/envauth\n\n----\n\nFlask\n-----\n\n.. code:: python\n\n import envauth\n\n @app.route('/secret-page')\n @envauth.flask.requires_auth(realm='You shall not pass!')\n def secret_page():\n return render_template('secret_page.html')\n\nBottle\n------\n\n.. code:: python\n\n import envauth\n\n @app.route('/secret-page')\n @envauth.bottle.requires_auth(realm='You shall not pass!')\n def secret_page():\n return template('secret_page.html')\n\nDjango\n------\n\n.. code:: python\n\n MIDDLEWARE_CLASSES += ('envauth.django',)\n\nWSGI\n----\n\n.. code:: python\n\n import envauth\n\n application = envauth.wsgi(application, realm='You shall not pass!')\n\nInstallation\n============\n\nInstall *envauth* with pip:\n\n::\n\n $ pip install envauth", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/waawal/envauth", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "envauth", "package_url": "https://pypi.org/project/envauth/", "platform": "any", "project_url": "https://pypi.org/project/envauth/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/waawal/envauth" }, "release_url": "https://pypi.org/project/envauth/1.0.1/", "requires_dist": null, "requires_python": null, "summary": "Authentication based on the ENVAUTH environment variable", "version": "1.0.1" }, "last_serial": 1012729, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "5cb4740d30badbf213623f0d291ac0f2", "sha256": "1bddee87021a240d2f370b0e4066f69b41dd37c7d561f9c1396346f5631ed12d" }, "downloads": -1, "filename": "envauth-1.0.0.tar.gz", "has_sig": false, "md5_digest": "5cb4740d30badbf213623f0d291ac0f2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3391, "upload_time": "2014-01-05T14:49:12", "url": "https://files.pythonhosted.org/packages/03/e0/fa48a00123c664bc54371275b8624e49f25fdfc30a57f74b5b907957e612/envauth-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "b8313415cf660c94438c264f0d514d34", "sha256": "683729141ab25f1bebbcbaced6e74eb8329550997cbf710475eb19d0ceaf0543" }, "downloads": -1, "filename": "envauth-1.0.1.tar.gz", "has_sig": false, "md5_digest": "b8313415cf660c94438c264f0d514d34", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3644, "upload_time": "2014-02-26T13:06:01", "url": "https://files.pythonhosted.org/packages/fa/e3/4f52bbbe630089fd54d13d52c811cfcd98b883d3310f1938b19c4ba21389/envauth-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b8313415cf660c94438c264f0d514d34", "sha256": "683729141ab25f1bebbcbaced6e74eb8329550997cbf710475eb19d0ceaf0543" }, "downloads": -1, "filename": "envauth-1.0.1.tar.gz", "has_sig": false, "md5_digest": "b8313415cf660c94438c264f0d514d34", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3644, "upload_time": "2014-02-26T13:06:01", "url": "https://files.pythonhosted.org/packages/fa/e3/4f52bbbe630089fd54d13d52c811cfcd98b883d3310f1938b19c4ba21389/envauth-1.0.1.tar.gz" } ] }