{ "info": { "author": "zaneYang", "author_email": "zane.yang@hey900.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 1 - Planning", "Environment :: Web Environment", "Framework :: Django :: 1.9", "License :: OSI Approved :: BSD License", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 2.7", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# django-oauth\n\nDescription\n--------\nDjdg Django Oauth provides a simple signature middleware verification between apps\n\nSupport\n-------\nmail to zane.yang@hey900.com\n\nRequirements\n------------\n\n* Python 2.7\n* Django 1.9\n\nInstallation\n------------\n\n**Install with pip**\n\n pip install djdg-django-oauth\n\n**Add `djdg_oauth` to your `INSTALLED_APPS`**\n\n\n INSTALLED_APPS = (\n ...\n 'djdg_oauth',\n )\n\n**run migrate to add tables:**\n\n\n\tpython manage.py migrate djdg_oauth\n\n\n**list, add, del app secret:**\n\n python manage.py listauthapp {app_name}\n python manage.py addauthapp {app_name}\n python manage.py delauthapp {app_name}\n\n**add middleware**(**options**, *you can create yourself middleware with djdg_oauth.oauthclient.OauthClient.verify_request*):\n\n MIDDLEWARE_CLASSES = (\n ...\n 'djdg_oauth.middleware.DjdgAuthMiddleware',\n)\n\n**add settings**(*app secret gaved by others*)\n\n DJDG_AUTH = {\n \"APPS\": [\n {\"appid\": \"xxxxxx\", \"secret\": \"xxxxxxxxxxxxxxxxxxx\", \"app\": \"xxx\"},\n ....\n ]\n \"FULL_ESCAPE_URL\": [....] # full match url to escape auth check,\n \"REGEX_ESCAPE_URL\": [....] # regex match url to escape auth check,\n\t\t\"REGEX_CHECK_URL\":[...] # need check url, if not empty, escape urls invalid\n }\n)\n\nDocumentation\n--------------\n\n**Verify request**\n\n\tfrom djdg_oauth.oauthclient import OauthClient\n\tauth = OauthClient()\n\tauth.verify(request)\n\n**Do request**\n\n\tfrom djdg_oauth.oauthclient import OauthClient\n\trequest_data = {\n\t\t\"url\": #url,\n\t\t\"app\": #app type,\n\t\t\"parameters\": #all request data,\n\t\t\"method\": #request method,\n\t\t\"headers\": #default None\n\t}\n\tOauthClient.oauth_request(**request_data)\n\n\nLicense\n-------\n\ndjdg-oauth is released under the terms of the **BSD license**. Full details in ``LICENSE`` file.\n\nChangelog\n---------\n\nversion 0.0.20\n\ndebug ascii error\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "djdg django oauth2 oauthlib", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "djdg-django-oauth", "package_url": "https://pypi.org/project/djdg-django-oauth/", "platform": "", "project_url": "https://pypi.org/project/djdg-django-oauth/", "project_urls": null, "release_url": "https://pypi.org/project/djdg-django-oauth/1.0.1/", "requires_dist": null, "requires_python": "", "summary": "djdg OAuth2 method for Django", "version": "1.0.1" }, "last_serial": 3095192, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "56b04b7842b73f92ae3d04eb74453b5c", "sha256": "a304c63f016c57932141779de84180488c50b8d02912bb56b97075d6d74ce93c" }, "downloads": -1, "filename": "djdg-django-oauth-0.0.1.tar.gz", "has_sig": false, "md5_digest": "56b04b7842b73f92ae3d04eb74453b5c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6254, "upload_time": "2016-08-24T12:01:18", "url": "https://files.pythonhosted.org/packages/a2/6b/108165da9a117f144e366b2d95d879d95525696a1f3b7adb1c09837bf7e5/djdg-django-oauth-0.0.1.tar.gz" } ], "0.0.10": [ { "comment_text": "", "digests": { "md5": "057103f15faf4f51dbf11c24c649fb80", "sha256": "358dd3afd5711abfa14851586175f2c7fc0faa59c7725210b55e52f1d695db68" }, "downloads": -1, "filename": "djdg-django-oauth-0.0.10.tar.gz", "has_sig": false, "md5_digest": "057103f15faf4f51dbf11c24c649fb80", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6626, "upload_time": "2016-08-26T11:51:27", "url": "https://files.pythonhosted.org/packages/29/66/7cc5ca1fc410cc3c1c59372e77982211082e9cce2a20831e5ae6bfb9b06e/djdg-django-oauth-0.0.10.tar.gz" } ], "0.0.11": [ { "comment_text": "", "digests": { "md5": "546a5e1b9d2cceae1d9e62e8b1dd573b", "sha256": "635c72615ef0969ff777dab78fac48afeb099fc786d67e7eac07c576f45698c8" }, "downloads": -1, "filename": "djdg-django-oauth-0.0.11.tar.gz", "has_sig": false, "md5_digest": "546a5e1b9d2cceae1d9e62e8b1dd573b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6628, "upload_time": "2016-08-27T02:37:43", "url": "https://files.pythonhosted.org/packages/45/31/9d8928564290168f721af4ad97ed5433400b7e34c0f5f7a51d70a2f50e6a/djdg-django-oauth-0.0.11.tar.gz" } ], "0.0.12": [ { "comment_text": "", "digests": { "md5": "1d6f7b192d4255753492b056b287ed6f", "sha256": "02d7da89d8abafef7b5781780bbe4c4542972f99fe5af10518785af6755740fb" }, "downloads": -1, "filename": "djdg-django-oauth-0.0.12.tar.gz", "has_sig": false, "md5_digest": "1d6f7b192d4255753492b056b287ed6f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6624, "upload_time": "2016-08-27T02:52:38", "url": "https://files.pythonhosted.org/packages/07/ec/7c9699ea22f4a7eb1762c890d6bb4279e35161e5ac526e82f639f885b4f7/djdg-django-oauth-0.0.12.tar.gz" } ], "0.0.13": [ { "comment_text": "", "digests": { "md5": "f6444ea9fee34af57dda2031dcbfc948", "sha256": "2e81d505f7a557d7d79463c2e2ad2d2941a8bb79aebf07b9291b606a48e6861a" }, "downloads": -1, "filename": "djdg-django-oauth-0.0.13.tar.gz", "has_sig": false, "md5_digest": "f6444ea9fee34af57dda2031dcbfc948", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8105, "upload_time": "2016-08-27T07:21:40", "url": "https://files.pythonhosted.org/packages/01/0c/da03a73e1aabd2b9908a2b3dfffcf298211c8677fa75b4efec042538147e/djdg-django-oauth-0.0.13.tar.gz" } ], "0.0.14": [ { "comment_text": "", "digests": { "md5": "26abfa1806043ae67811098f78bd7760", "sha256": "91ca46187fd9533c492187e7575e997afe9e04a3722594dc7cc173433628294a" }, "downloads": -1, "filename": "djdg-django-oauth-0.0.14.tar.gz", "has_sig": false, "md5_digest": "26abfa1806043ae67811098f78bd7760", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8106, "upload_time": "2016-08-27T09:26:54", "url": "https://files.pythonhosted.org/packages/6b/51/71979a8a29558a9730ec5b2f643dbd58fa90b555d2f92f0380d548d03681/djdg-django-oauth-0.0.14.tar.gz" } ], "0.0.15": [ { "comment_text": "", "digests": { "md5": "80f42b61d48e74960929c8988753087f", "sha256": "3a32feae99d8eaa664099dcde082ffee6915572248efbf5144e48532148fd8ed" }, "downloads": -1, "filename": "djdg-django-oauth-0.0.15.tar.gz", "has_sig": false, "md5_digest": "80f42b61d48e74960929c8988753087f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8147, "upload_time": "2016-08-29T06:16:27", "url": "https://files.pythonhosted.org/packages/16/a5/1fb874eff1f8a93bd4ef1ac6c1f05c11173f0ccf5807e385e2cca4b50052/djdg-django-oauth-0.0.15.tar.gz" } ], "0.0.16": [ { "comment_text": "", "digests": { "md5": "105b8e432447ff8f971d510252ac6c91", "sha256": "6f6d0ba1e60e089b8fcfe5a61d210fbb31b4c385fb5a688482438938d5f3a008" }, "downloads": -1, "filename": "djdg-django-oauth-0.0.16.tar.gz", "has_sig": false, "md5_digest": "105b8e432447ff8f971d510252ac6c91", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8137, "upload_time": "2016-08-31T03:22:49", "url": "https://files.pythonhosted.org/packages/a2/c3/654c89f49655971b562dc28a96f710052f42aa26927b2aa4a313faf20d8f/djdg-django-oauth-0.0.16.tar.gz" } ], "0.0.17": [ { "comment_text": "", "digests": { "md5": "538d59fb132543cffbf703e4f903d0cd", "sha256": "448fc5c2f3b873a16d29592a3231e8abdca5b7d2e0c7683cbbcbe9fab6d81fc2" }, "downloads": -1, "filename": "djdg-django-oauth-0.0.17.tar.gz", "has_sig": false, "md5_digest": "538d59fb132543cffbf703e4f903d0cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8172, "upload_time": "2016-09-28T09:35:24", "url": "https://files.pythonhosted.org/packages/00/e1/d77e7da985d9a3c4117f3f234d41e387686def67fe8c50d5e368be7db1c1/djdg-django-oauth-0.0.17.tar.gz" } ], "0.0.18": [ { "comment_text": "", "digests": { "md5": "679e10030b7b4c30fb4e7616bf8509b6", "sha256": "205e6df30bfc0b4e3143d991f17bcc58454a213e4a8e90f77fd18ed4b20ac84a" }, "downloads": -1, "filename": "djdg-django-oauth-0.0.18.tar.gz", "has_sig": false, "md5_digest": "679e10030b7b4c30fb4e7616bf8509b6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8185, "upload_time": "2016-09-28T09:45:10", "url": "https://files.pythonhosted.org/packages/26/d6/37054f8e4f71cacef896fecd1d3a5d4bd84f7e9f4035e524c097210de43f/djdg-django-oauth-0.0.18.tar.gz" } ], "0.0.19": [ { "comment_text": "", "digests": { "md5": "88f450bf8d4dfa179e081c03d4a17e09", "sha256": "9124b7b55f2e511b4aab044d9c485f514782180ce0daa1a1ae1a0c2c6891072b" }, "downloads": -1, "filename": "djdg-django-oauth-0.0.19.tar.gz", "has_sig": false, "md5_digest": "88f450bf8d4dfa179e081c03d4a17e09", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8197, "upload_time": "2016-10-17T08:46:30", "url": "https://files.pythonhosted.org/packages/11/09/10665cff0194dbe44feab2cbecb85147b2cb1faccbad389d8999a2ff1a91/djdg-django-oauth-0.0.19.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "8357cf9e3d344486539490b01f6a72a0", "sha256": "58501a024c600c17db4a978dbc43389a5d75427f6c564e3917863e3055d92b2d" }, "downloads": -1, "filename": "djdg-django-oauth-0.0.2.tar.gz", "has_sig": false, "md5_digest": "8357cf9e3d344486539490b01f6a72a0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6306, "upload_time": "2016-08-25T03:13:28", "url": "https://files.pythonhosted.org/packages/2c/35/c7714c571dd322b98d2abb1c5c01f040617c37b553b4237d6b8d67fa41e0/djdg-django-oauth-0.0.2.tar.gz" } ], "0.0.20": [ { "comment_text": "", "digests": { "md5": "db28085968784a34fde2b3745d43644f", "sha256": "f7b7c4985d74fb4cda2672b9d9cfbfa014ee486d232684a4b68717ef509eb971" }, "downloads": -1, "filename": "djdg-django-oauth-0.0.20.tar.gz", "has_sig": false, "md5_digest": "db28085968784a34fde2b3745d43644f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8263, "upload_time": "2016-10-17T10:06:47", "url": "https://files.pythonhosted.org/packages/eb/be/28c0cf159da8b061cedd1651d79145d3e09f09f11dafc77f38ec2a8c3d02/djdg-django-oauth-0.0.20.tar.gz" } ], "0.0.21": [ { "comment_text": "", "digests": { "md5": "35b91cb86f5ba30e330c8a0290e1fabd", "sha256": "31fa3ae14b204771bd12cb5ad427395cf4f7f2658ae7151d898b06e16850fe1c" }, "downloads": -1, "filename": "djdg-django-oauth-0.0.21.tar.gz", "has_sig": false, "md5_digest": "35b91cb86f5ba30e330c8a0290e1fabd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8273, "upload_time": "2016-10-18T07:45:13", "url": "https://files.pythonhosted.org/packages/cb/c9/a156639ac11841c1ad59b59293cde1545302315a1a170031954db5b9d467/djdg-django-oauth-0.0.21.tar.gz" } ], "0.0.22": [ { "comment_text": "", "digests": { "md5": "f48a5011c5493ce62daeb95caf8b6bf1", "sha256": "474a1cbd5592a73b6afc9cda7b1d88d119726e470a214773d07a6caad7d20829" }, "downloads": -1, "filename": "djdg-django-oauth-0.0.22.tar.gz", "has_sig": false, "md5_digest": "f48a5011c5493ce62daeb95caf8b6bf1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8283, "upload_time": "2017-02-07T02:29:14", "url": "https://files.pythonhosted.org/packages/6a/e9/d8e80d2a2b1193d7238dc6db1ddc376073997a88c151fba2888fe042249e/djdg-django-oauth-0.0.22.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "8467f0df00e3699e6b1ff46d856a9ada", "sha256": "82584b003610d1cb46b2ee17ffc7ac5166d9b8ad83b249caffc06a0915d673d3" }, "downloads": -1, "filename": "djdg-django-oauth-0.0.3.tar.gz", "has_sig": false, "md5_digest": "8467f0df00e3699e6b1ff46d856a9ada", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6384, "upload_time": "2016-08-25T06:02:03", "url": "https://files.pythonhosted.org/packages/4a/e1/cc6574ef74509ad30a717dda301e044a43897d198f970f7b74e94a18b927/djdg-django-oauth-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "d460d2f3b24a964bc346c5cdd0a5792c", "sha256": "c2c4c4cd33d4d68e7f447b5047b5fc33bbb8cad3e2e2f10d6edd09ee396fe4c4" }, "downloads": -1, "filename": "djdg-django-oauth-0.0.4.tar.gz", "has_sig": false, "md5_digest": "d460d2f3b24a964bc346c5cdd0a5792c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6382, "upload_time": "2016-08-25T06:15:43", "url": "https://files.pythonhosted.org/packages/0c/58/dd767ff3a987e6f621e93142d8fadaed5028093ea0d774f3e74358bb812b/djdg-django-oauth-0.0.4.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "eb5a8cb34e34798cf8b91ff33c13aa4b", "sha256": "dc0a744746689ab1a009504187e59c255840166f297a91835475f4e864981ea3" }, "downloads": -1, "filename": "djdg-django-oauth-0.0.6.tar.gz", "has_sig": false, "md5_digest": "eb5a8cb34e34798cf8b91ff33c13aa4b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6392, "upload_time": "2016-08-25T06:30:41", "url": "https://files.pythonhosted.org/packages/22/36/443e1d898fae4f56edd2e476dd086fcce08cadd540ce49644610132e7677/djdg-django-oauth-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "cd18a9360b39c15ac4f8e0a4e3530fb9", "sha256": "0ef23f34503d10423bebc6eeb74793a53fff58d01175089ed6f657c9e235a63f" }, "downloads": -1, "filename": "djdg-django-oauth-0.0.7.tar.gz", "has_sig": false, "md5_digest": "cd18a9360b39c15ac4f8e0a4e3530fb9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6389, "upload_time": "2016-08-25T07:16:40", "url": "https://files.pythonhosted.org/packages/30/b4/bf9d2850f0a5676d4ddad11619eb0698ab663603b762c73f29e96c5d1a82/djdg-django-oauth-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "3201c9cbdafc2ccfb1227d4d614571f9", "sha256": "eef077f647b05b07020f7289c4535063fec930a361e65b664796fc5d08e05315" }, "downloads": -1, "filename": "djdg-django-oauth-0.0.8.tar.gz", "has_sig": false, "md5_digest": "3201c9cbdafc2ccfb1227d4d614571f9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6386, "upload_time": "2016-08-25T07:26:37", "url": "https://files.pythonhosted.org/packages/c8/1b/631c156c2a02f18c184f15fd42b3417df73081f51b4c17b449c06c9ec952/djdg-django-oauth-0.0.8.tar.gz" } ], "0.0.9": [ { "comment_text": "", "digests": { "md5": "4feb23e81b610a399740f2080b88d5b5", "sha256": "77972d7c678af2e0ab61b477aab744f147c8c33058c7b06dd0383d1c750b8177" }, "downloads": -1, "filename": "djdg-django-oauth-0.0.9.tar.gz", "has_sig": false, "md5_digest": "4feb23e81b610a399740f2080b88d5b5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6598, "upload_time": "2016-08-26T08:12:38", "url": "https://files.pythonhosted.org/packages/6a/3e/a200b831e04f04c651a29351855ed0163a4b0ca4ede9edbae345e579d4d2/djdg-django-oauth-0.0.9.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "9aa64cf9a0578c5a06ae1ea664b7043a", "sha256": "6f2d6400be9b144dc1774c20b09f01ad66d0f2930463a62490952541cb3273a6" }, "downloads": -1, "filename": "djdg-django-oauth-1.0.0.tar.gz", "has_sig": false, "md5_digest": "9aa64cf9a0578c5a06ae1ea664b7043a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8505, "upload_time": "2017-08-14T10:18:57", "url": "https://files.pythonhosted.org/packages/42/e0/3cbd16bfe991282ef7b501e9a0794df0bc0587eee77e8bf35b0d711973d4/djdg-django-oauth-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "8c882f997d9bcea944aa6f13f5b23dbe", "sha256": "286fb98df4213f8b73c91c4236b9d31c872084911d3647529e74d059df903c6d" }, "downloads": -1, "filename": "djdg-django-oauth-1.0.1.tar.gz", "has_sig": false, "md5_digest": "8c882f997d9bcea944aa6f13f5b23dbe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8496, "upload_time": "2017-08-14T10:53:34", "url": "https://files.pythonhosted.org/packages/1a/59/136aabd0eef27f1e1fdeb96594a738f08ad51863bf83f679172ce1d01c09/djdg-django-oauth-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8c882f997d9bcea944aa6f13f5b23dbe", "sha256": "286fb98df4213f8b73c91c4236b9d31c872084911d3647529e74d059df903c6d" }, "downloads": -1, "filename": "djdg-django-oauth-1.0.1.tar.gz", "has_sig": false, "md5_digest": "8c882f997d9bcea944aa6f13f5b23dbe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8496, "upload_time": "2017-08-14T10:53:34", "url": "https://files.pythonhosted.org/packages/1a/59/136aabd0eef27f1e1fdeb96594a738f08ad51863bf83f679172ce1d01c09/djdg-django-oauth-1.0.1.tar.gz" } ] }