{ "info": { "author": "Igor `idle sign` Starikov", "author_email": "idlesign@yandex.ru", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD 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.5", "Programming Language :: Python :: 3.6" ], "description": "django-oauthost\n===============\nhttp://github.com/idlesign/django-oauthost\n\n.. image:: https://idlesign.github.io/lbc/py2-lbc.svg\n :target: https://idlesign.github.io/lbc/\n :alt: LBC Python 2\n\n----\n\n.. image:: https://img.shields.io/pypi/v/django-oauthost.svg\n :target: https://pypi.python.org/pypi/django-oauthost\n\n.. image:: https://img.shields.io/pypi/l/django-oauthost.svg\n :target: https://pypi.python.org/pypi/django-oauthost\n\n.. image:: https://img.shields.io/coveralls/idlesign/django-oauthost/master.svg\n :target: https://coveralls.io/r/idlesign/django-oauthost\n\n.. image:: https://img.shields.io/travis/idlesign/django-oauthost/master.svg\n :target: https://travis-ci.org/idlesign/django-oauthost\n\n.. image:: https://landscape.io/github/idlesign/django-oauthost/master/landscape.svg?style=flat\n :target: https://landscape.io/github/idlesign/django-oauthost/master\n\n\nWhat's that\n-----------\n\n*Reusable application for Django to protect your apps with OAuth 2.0.*\n\nIt allows to guard your application views with OAuth 2.0 in quite a trivial way.\n\n1. Register your client using Django Admin or API:\n\n.. code-block:: python\n\n from oauthost.toolbox import register_client\n\n ...\n\n # Define some scopes to restrict our client to (if required).\n my_scopes = ['polls:vote']\n\n # `user` might be `request.user` if in a view.\n register_client('My OAuth Client', 'my_client',\n 'http://someurl.com/myclient/', user, scopes_list=my_scopes)\n\n ...\n\n2. Decorate your views with `oauth_required` (suppose in `polls.views`):\n\n.. code-block:: python\n\n from oauthost.decorators import oauth_required\n\n @oauth_required(scope_auto=True)\n def vote(request, poll_id, variant_id):\n ...\n\n\n3. Attach `oauthost.urls` to project `urls` (in `urls.py`):\n\n.. code-block:: python\n\n from oauthost.urls import urlpatterns as oauthost_urlpatterns\n\n urlpatterns = ... # Your actual urlpatterns are ommited.\n\n urlpatterns += oauthost_urlpatterns\n\n\nNow authorization endpoint is available at `{ BASE_URL }auth/` and token endpoint is available at `{ BASE_URL }token/`.\n\nThat's all for **oauthost**, connect using your client.\n\nMore information is available, read the docs!\n\n\nDocumentation\n-------------\n\nhttp://django-oauthost.readthedocs.org/\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/idlesign/django-oauthost", "keywords": "", "license": "BSD 3-Clause License", "maintainer": "", "maintainer_email": "", "name": "django-oauthost", "package_url": "https://pypi.org/project/django-oauthost/", "platform": "", "project_url": "https://pypi.org/project/django-oauthost/", "project_urls": { "Homepage": "http://github.com/idlesign/django-oauthost" }, "release_url": "https://pypi.org/project/django-oauthost/1.0.0/", "requires_dist": null, "requires_python": "", "summary": "Reusable application for Django to protect your apps with OAuth 2.0.", "version": "1.0.0" }, "last_serial": 4702879, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "f157529966b8215420bb6052ec8f67b7", "sha256": "e838ff385476580bfbff0da1c1ea8659bdbcdec5fafbaa346f3c07825b172da9" }, "downloads": -1, "filename": "django-oauthost-0.0.1.tar.gz", "has_sig": false, "md5_digest": "f157529966b8215420bb6052ec8f67b7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24817, "upload_time": "2012-01-10T16:50:03", "url": "https://files.pythonhosted.org/packages/7e/5e/54c20d3aaceae9194aa6a8629e1ba2cf19b539a7a48b0af5f6e8b97c5d02/django-oauthost-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "da81eb57ab7a0e417a967d0c7c73b888", "sha256": "4e3e8919c61fd3bff1266232ea457cab6802f5075dcb58df1f12fb94c694ef90" }, "downloads": -1, "filename": "django-oauthost-0.0.2.tar.gz", "has_sig": false, "md5_digest": "da81eb57ab7a0e417a967d0c7c73b888", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25277, "upload_time": "2012-01-11T15:47:12", "url": "https://files.pythonhosted.org/packages/94/04/8ca133361bace8762a71840a072751730abd63e4e3bcd8473c04f20b2640/django-oauthost-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "f75947902e3ee8ed9a0c3106e0bea459", "sha256": "d15f22fb5e530394a81285bd7eba208ebad58fba4977d0727bd4fd3e85734b7b" }, "downloads": -1, "filename": "django-oauthost-0.0.3.tar.gz", "has_sig": false, "md5_digest": "f75947902e3ee8ed9a0c3106e0bea459", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28198, "upload_time": "2012-07-19T14:44:57", "url": "https://files.pythonhosted.org/packages/5d/86/007b28477733a9027241192b770748a16e348b0e7bc57742e4703960438a/django-oauthost-0.0.3.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "e19c361867fb0cc40e49a79cb73cc6e8", "sha256": "02a96219037ee9650787fe1c253b007d02ea00d397def92318a90cb8c9ef55b5" }, "downloads": -1, "filename": "django-oauthost-0.1.0.tar.gz", "has_sig": false, "md5_digest": "e19c361867fb0cc40e49a79cb73cc6e8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28851, "upload_time": "2013-07-04T14:48:37", "url": "https://files.pythonhosted.org/packages/38/15/9462967a96bdf7766d5ab66090cf42ff123e0b1b885ddf92ac84e631ea8c/django-oauthost-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "2526283d5195c0ec903859b8a16c9585", "sha256": "f6ea41928dff6abb975b7e77df65bf304d46b4d143257893186d1fbbc142dee3" }, "downloads": -1, "filename": "django-oauthost-0.2.0.tar.gz", "has_sig": false, "md5_digest": "2526283d5195c0ec903859b8a16c9585", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 38906, "upload_time": "2014-06-09T17:32:24", "url": "https://files.pythonhosted.org/packages/46/60/83df665feef17c0e59f9ecfe8a7043b02f2cfe8abcb7423da8933f4cb641/django-oauthost-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "c315818759bd0dd42ad6b296b489a3f6", "sha256": "f190fcfe7e506e3b32ef348e3016ed1c3193006010a408748f808e89ce44ad7d" }, "downloads": -1, "filename": "django-oauthost-0.3.0.tar.gz", "has_sig": false, "md5_digest": "c315818759bd0dd42ad6b296b489a3f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 42603, "upload_time": "2014-06-10T13:59:39", "url": "https://files.pythonhosted.org/packages/c6/80/bc8417c05ff404ee5b417627df78b22dc037b216c9edc1058e136a78aae9/django-oauthost-0.3.0.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "90331911de4c330166ae6101955ae5e0", "sha256": "8da8f713284a9dcb963600d53362c7621bd72f61f6ea5ab820d02fc17bb51f13" }, "downloads": -1, "filename": "django_oauthost-0.4.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "90331911de4c330166ae6101955ae5e0", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 70064, "upload_time": "2016-08-28T09:39:08", "url": "https://files.pythonhosted.org/packages/c0/87/f816a9bafde03c4c5a944a41cd4da148c89dccb5476b8cee138d113f992e/django_oauthost-0.4.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "75be6cc3632c91e03335b0e30ff15e25", "sha256": "06e652f8f284b602cf4cd0ae12a773134c7519b2efbf21897f39e2bae579d1f4" }, "downloads": -1, "filename": "django-oauthost-0.4.0.tar.gz", "has_sig": false, "md5_digest": "75be6cc3632c91e03335b0e30ff15e25", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 51687, "upload_time": "2016-08-28T09:39:05", "url": "https://files.pythonhosted.org/packages/06/21/3bddf301cd1f1f9926359b13f92816a3feeae0c5e5c4616632ad8aefbed1/django-oauthost-0.4.0.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "732b8e2b2fe679be619ed9b740f651b1", "sha256": "6f9adabb366e8e152240b8d6257d81662923ad8b9234aae140b5c2f5365bb77b" }, "downloads": -1, "filename": "django_oauthost-0.5.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "732b8e2b2fe679be619ed9b740f651b1", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 65064, "upload_time": "2017-12-16T03:46:55", "url": "https://files.pythonhosted.org/packages/5a/24/c48ab8fdd384a7fc9df836b1bbc06c83b02eb0a90974d7fec03ed916b903/django_oauthost-0.5.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6af9d21fbdbd8a328782db8732e819cb", "sha256": "93b9c4ee7ff0be734712b2973e6f7fbedf8e001f811225481df0898c3b293553" }, "downloads": -1, "filename": "django-oauthost-0.5.0.tar.gz", "has_sig": false, "md5_digest": "6af9d21fbdbd8a328782db8732e819cb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 47367, "upload_time": "2017-12-16T03:46:52", "url": "https://files.pythonhosted.org/packages/dc/88/6778ee84a8381d71aac3ed0532fea441bd6c04ef6da362122be93c7ea026/django-oauthost-0.5.0.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "9266b25cabdc5bc4e66584a23bf21b48", "sha256": "b11ec975083c7a0230ac40f18da757609b3c49c0b22eb08147cc42f8156bf3fa" }, "downloads": -1, "filename": "django_oauthost-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9266b25cabdc5bc4e66584a23bf21b48", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 61193, "upload_time": "2019-01-16T11:30:48", "url": "https://files.pythonhosted.org/packages/19/c4/43a01b0264d6519a854234ec6f4baf2f2054cc69cafa409cc7d5e8bcc5bd/django_oauthost-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "97cbd2ecaecf56efbda8591e931798d4", "sha256": "e50e68ed3673ddddeaf221bc769d72093299728ac21ddce43392dadaafecb5f5" }, "downloads": -1, "filename": "django-oauthost-1.0.0.tar.gz", "has_sig": false, "md5_digest": "97cbd2ecaecf56efbda8591e931798d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 44443, "upload_time": "2019-01-16T11:30:45", "url": "https://files.pythonhosted.org/packages/3d/8c/41c90a927e63b3472288e059b0dafb8fd297208d43b56c94a7611ba33805/django-oauthost-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9266b25cabdc5bc4e66584a23bf21b48", "sha256": "b11ec975083c7a0230ac40f18da757609b3c49c0b22eb08147cc42f8156bf3fa" }, "downloads": -1, "filename": "django_oauthost-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9266b25cabdc5bc4e66584a23bf21b48", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 61193, "upload_time": "2019-01-16T11:30:48", "url": "https://files.pythonhosted.org/packages/19/c4/43a01b0264d6519a854234ec6f4baf2f2054cc69cafa409cc7d5e8bcc5bd/django_oauthost-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "97cbd2ecaecf56efbda8591e931798d4", "sha256": "e50e68ed3673ddddeaf221bc769d72093299728ac21ddce43392dadaafecb5f5" }, "downloads": -1, "filename": "django-oauthost-1.0.0.tar.gz", "has_sig": false, "md5_digest": "97cbd2ecaecf56efbda8591e931798d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 44443, "upload_time": "2019-01-16T11:30:45", "url": "https://files.pythonhosted.org/packages/3d/8c/41c90a927e63b3472288e059b0dafb8fd297208d43b56c94a7611ba33805/django-oauthost-1.0.0.tar.gz" } ] }