{ "info": { "author": "Rhys Elsmore", "author_email": "me@rhys.io", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Flask-Heroku-Auth\n=================\n\n.. image:: https://travis-ci.org/rhyselsmore/flask-heroku-auth.png?branch=master\n :target: https://travis-ci.org/rhyselsmore/flask-heroku-auth\n\n.. image:: https://pypip.in/d/Flask-Heroku-Auth/badge.png\n :target: https://crate.io/packages/Flask-Heroku-Auth/\n\nA set of Flask Route decorators to enable either Session-Based Authentication\nvia Heroku's OAuth mechanism, or Basic Stateless Authentication via Heroku's\nAPI Key facilities.\n\nInstallation\n------------\n\n.. code-block:: bash\n\n pip install flask-heroku-auth\n\nConfiguration\n-------------\n\nTo enable regex routes within your application\n\n.. code-block:: python\n\n from flask import Flask\n from flask_heroku_auth import HerokuAuth\n\n app = Flask(__name__)\n HerokuAuth(app)\n\nor\n\n.. code-block:: python\n\n from flask import Flask\n from flask_heroku_auth import HerokuAuth\n\n auth = HerokuAuth()\n\n def create_app():\n app = Flask(__name__)\n auth.init_app(app)\n return app\n\nFrom here, it is a matter of decorating the appropriate routes.\n\nFor example, the following would implement authentication via the Heroku\nOAuth facility\n\n.. code-block:: python\n\n @app.route('/')\n @auth.oauth\n def index():\n return \"Ok\"\n\nOn the other hand, you may wish to authenticate via the Heroku API Key\nfacility. In this case, the credentials are sent through with every\nrequest as an 'Authorization' header\n\n.. code-block:: python\n\n @app.route('/')\n @auth.api\n def index():\n return \"Ok\"\n\nYou can also restrict access to a Heroku user who has an @heroku.com email\naddress.\n\n.. code-block:: python\n\n @app.route('/')\n @auth.oauth\n @auth.herokai_only\n def index():\n return \"Ok\"\n\n\nHistory\n=======\n\n0.0.5 (14/11/2012)\n------------------\n\n- Introduced a template filter for the current user.\n\n0.0.4 (1/11/2012)\n------------------\n\n- Minor Tweaks.\n\n0.0.3 (16/09/2012)\n------------------\n\n- User field is now not required for sudo operations.\n\n0.0.2 (24/08/2012)\n------------------\n\n- Checking for 'herokai_only' now occurs only if the user is logged in.\n\n0.0.1 (24/08/2012)\n------------------\n\n- Conception\n- Initial Commit of Package to GitHub.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/rhyselsmore/flask-heroku-auth", "keywords": null, "license": "Copyright 2013 Rhys Elsmore\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.", "maintainer": null, "maintainer_email": null, "name": "Flask-Heroku-Auth", "package_url": "https://pypi.org/project/Flask-Heroku-Auth/", "platform": "any", "project_url": "https://pypi.org/project/Flask-Heroku-Auth/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/rhyselsmore/flask-heroku-auth" }, "release_url": "https://pypi.org/project/Flask-Heroku-Auth/0.0.5/", "requires_dist": null, "requires_python": null, "summary": "Flask Based Heroku Authentication.", "version": "0.0.5" }, "last_serial": 918299, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "60693013c6bf0ea005149761b7170a96", "sha256": "c8ed1492dc9d22a28e0d854535b3e90165621ca735d1ec726e52f537de2a18b7" }, "downloads": -1, "filename": "Flask-Heroku-Auth-0.0.1.tar.gz", "has_sig": false, "md5_digest": "60693013c6bf0ea005149761b7170a96", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5461, "upload_time": "2013-08-25T00:14:39", "url": "https://files.pythonhosted.org/packages/fb/fa/d4d1b1249eefa65d6cbea78778288cf3d3cdf0083d65f7b0a3898ff725ea/Flask-Heroku-Auth-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "e4b7a25779e285922399dab21add6612", "sha256": "d9314b46449413ed455a0243f5810bf9b533ba36c9ad979f34a0ba5072f3e0df" }, "downloads": -1, "filename": "Flask-Heroku-Auth-0.0.2.tar.gz", "has_sig": false, "md5_digest": "e4b7a25779e285922399dab21add6612", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5511, "upload_time": "2013-08-25T00:20:34", "url": "https://files.pythonhosted.org/packages/c7/23/2a151aad2770e591da04564e93507f227d101a5a471625f47205ed79d792/Flask-Heroku-Auth-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "f4f3f8d23973d86dcacd779869130761", "sha256": "de41c8992c939ff837dc7334930c529be19d2269af3d466501009ad15fcd586c" }, "downloads": -1, "filename": "Flask-Heroku-Auth-0.0.3.tar.gz", "has_sig": false, "md5_digest": "f4f3f8d23973d86dcacd779869130761", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5587, "upload_time": "2013-09-16T12:58:11", "url": "https://files.pythonhosted.org/packages/33/2e/efd5d677350a1efe9665087c62bbb3c819ed6aa86b0c69f6858f38b9acbd/Flask-Heroku-Auth-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "e6fa22f65da82b383da4ef0aff0f85ca", "sha256": "cbfc17ebda155f3fe1a2da30a0c81c05c00788d92a44f25b68852a9d9cce32cf" }, "downloads": -1, "filename": "Flask-Heroku-Auth-0.0.4.tar.gz", "has_sig": false, "md5_digest": "e6fa22f65da82b383da4ef0aff0f85ca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5746, "upload_time": "2013-09-22T05:07:18", "url": "https://files.pythonhosted.org/packages/4c/bc/dbd7c91c2eeb65f75c4c18ee032b6154b907a0b77c02ed7e69d33a388867/Flask-Heroku-Auth-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "3442a38614bf5dd03d8cd7fce51fffcd", "sha256": "ef8e6bb6d04ffe7bfdf8c3d915f9b43bf5a014ca2b54834e6d37919ad503bae6" }, "downloads": -1, "filename": "Flask-Heroku-Auth-0.0.5.tar.gz", "has_sig": false, "md5_digest": "3442a38614bf5dd03d8cd7fce51fffcd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5859, "upload_time": "2013-11-13T13:55:17", "url": "https://files.pythonhosted.org/packages/f2/6b/158b0a0d6daf78aa4f1377ec7e53179f7c7c1e639a7de08fb672d208c9b6/Flask-Heroku-Auth-0.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3442a38614bf5dd03d8cd7fce51fffcd", "sha256": "ef8e6bb6d04ffe7bfdf8c3d915f9b43bf5a014ca2b54834e6d37919ad503bae6" }, "downloads": -1, "filename": "Flask-Heroku-Auth-0.0.5.tar.gz", "has_sig": false, "md5_digest": "3442a38614bf5dd03d8cd7fce51fffcd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5859, "upload_time": "2013-11-13T13:55:17", "url": "https://files.pythonhosted.org/packages/f2/6b/158b0a0d6daf78aa4f1377ec7e53179f7c7c1e639a7de08fb672d208c9b6/Flask-Heroku-Auth-0.0.5.tar.gz" } ] }