{ "info": { "author": "\u9ec4\u6c11\u822a", "author_email": "gmhesat@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 2.0", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3.6" ], "description": "=====\ndjango-google-auth\n=====\n\ndjango-google-auth project is demo application for codingsoho\n\nDetailed documentation is in the \"docs\" directory.\n\nQuick start\n-----------\n\n# googleauth\n\n\n\n1. \u5b89\u88c5 django-google-auth2\n\n\n```\npip3 install django-google-auth2\n```\n\n2. \u6dfb\u52a0 django_google_auth2 \u5230app\n\n```\nINSTALLED_APPS = [\n ...\n 'django_google_auth2',\n ]\n```\n\n3. \u7ed1\u5b9agoogle\u4ee4\u724c\n\n```\nfrom django_google_auth2.google.bindgoogleauth.bindgoogleauth import bind_google_auth\n\nbind_google_auth(user) \n\n```\n\n\n**\u51fd\u6570\u53c2\u6570\uff1a** \n\n|\u53c2\u6570\u540d|\u5fc5\u9009|\u7c7b\u578b|\u8bf4\u660e|\n|:---- |:---|:----- |----- |\n|user |\u662f |string | \u7528\u6237\u540d Or \u90ae\u7bb1 |\n\n\n **\u8fd4\u56de\u53c2\u6570\u8bf4\u660e** \n|\u53c2\u6570\u540d|\u7c7b\u578b|\u8bf4\u660e|\n|:----- |:-----|----- |\n|success |bool | True/False |\n|data |string | google\u4ee4\u724c\u5b57\u7b26\u4e32(\u7528\u4e8e\u751f\u6210\u4e8c\u7ef4\u7801) |\n\n4. \u89e3\u7ed1google\u4ee4\u724c\n\n```\nfrom django_google_auth2.google.deletegoogleauth.deletegoogleauth import delete_google_auth\n\n\ndelete_google_auth(user) \n\n```\n\n\n**\u51fd\u6570\u53c2\u6570\uff1a** \n\n|\u53c2\u6570\u540d|\u5fc5\u9009|\u7c7b\u578b|\u8bf4\u660e|\n|:---- |:---|:----- |----- |\n|user |\u662f |string | \u7528\u6237\u540d Or \u90ae\u7bb1 |\n\n **\u8fd4\u56de\u53c2\u6570\u8bf4\u660e** \n|\u53c2\u6570\u540d|\u7c7b\u578b|\u8bf4\u660e|\n|:----- |:-----|-----|\n|success |bool | True/False |\n|data |string | \u5220\u9664\u6210\u529f |\n\n5. \u9a8c\u8bc1google\u4ee4\u724c\n\n```\nfrom django_google_auth2.google.checkgoogleauth.checkgoogleauth import check_google_auth\n\n\n\ncheck_google_auth(user,code) \n\n```\n\n**\u51fd\u6570\u53c2\u6570\uff1a** \n\n|\u53c2\u6570\u540d|\u5fc5\u9009|\u7c7b\u578b|\u8bf4\u660e|\n|:---- |:---|:----- |----- |\n|user |\u662f |string | \u7528\u6237\u540d Or \u90ae\u7bb1 |\n|code |\u662f |string | \u5ba2\u6237\u7aef\u52a8\u6001\u7801 |\n\n **\u8fd4\u56de\u53c2\u6570\u8bf4\u660e** \n|\u53c2\u6570\u540d|\u7c7b\u578b|\u8bf4\u660e|\n|:----- |:-----|-----|\n|success |bool | True/False |\n\n\n6. \u7ed1\u5b9agoogle\u4ee4\u724cApi\u63a5\u53e3\n\n\nurls.py\n\n```\nfrom django_google_auth2.google.bindgoogleauth.bindgoogleauthapi import bind_google_auth_api\n\n\nurlpatterns = [\n ...\n path('bing-google-auth-api/', bind_google_auth_api),\n]\n\n```\n\n**\u8bf7\u6c42\u65b9\u5f0f\uff1a**\n- POST\n\n **\u8bf7\u6c42\u793a\u4f8b**\n\n```\n{\n\t\"user\":\"cox\"\n}\n```\n\n**\u51fd\u6570\u53c2\u6570\uff1a** \n\n|\u53c2\u6570\u540d|\u5fc5\u9009|\u7c7b\u578b|\u8bf4\u660e|\n|:---- |:---|:----- |----- |\n|user |\u662f |string | \u7528\u6237\u540d Or \u90ae\u7bb1 |\n\n **\u8fd4\u56de** \n \n![20190402192923-image.png](https://raw.githubusercontent.com/Coxhuang/yosoro/master/20190402192923-image.png)\n\n\n7. \u5ba2\u6237\u7aef(\u4e8c\u9009\u4e00)\n\n> \u5b89\u5353App\n\nGoogle\u4ee4\u724c+\u626b\u7801\u5668(\u5982\u679c\u624b\u673a\u53ea\u5b89\u88c5Google\u4ee4\u724cApp\u626b\u7801\u5931\u8d25,\u8bf7\u5b89\u88c5\u626b\u7801\u5668)\n\n\u94fe\u63a5\uff1ahttps://pan.baidu.com/s/1XeO7p4IvNuvzQOiZrq4wtw\n\n\u63d0\u53d6\u7801\uff1ae70f\n\n> Chrome\u63d2\u4ef6\n\nhttps://chrome.google.com/webstore/detail/authenticator/bhghoamapcdpbohphigoooaddinpkbai", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Coxhuang/django-google-auth", "keywords": "", "license": "BSD License", "maintainer": "", "maintainer_email": "", "name": "django-google-auth2", "package_url": "https://pypi.org/project/django-google-auth2/", "platform": "", "project_url": "https://pypi.org/project/django-google-auth2/", "project_urls": { "Homepage": "https://github.com/Coxhuang/django-google-auth" }, "release_url": "https://pypi.org/project/django-google-auth2/0.0.8/", "requires_dist": null, "requires_python": "", "summary": "django-google-auth2 project is demo application for google auth", "version": "0.0.8" }, "last_serial": 5081756, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "9484d798304439f324f399d2971eb5fe", "sha256": "f16fad50fde59dc8fc493d3d2038dfad9fee31c366a15e542bfe2d590474aca3" }, "downloads": -1, "filename": "django-google-auth2-0.0.1.tar.gz", "has_sig": false, "md5_digest": "9484d798304439f324f399d2971eb5fe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3216, "upload_time": "2019-04-02T07:13:52", "url": "https://files.pythonhosted.org/packages/b9/af/467b9ddea87797cc448f10cd51ac87258ce468be932389aee739a3e5681d/django-google-auth2-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "1401fa596764b7c17ca8d742d82674c8", "sha256": "fe6dd2365cf8c37c89add4f0d3a50c8512374493467a09c7381198fd0a185bc0" }, "downloads": -1, "filename": "django-google-auth2-0.0.2.tar.gz", "has_sig": false, "md5_digest": "1401fa596764b7c17ca8d742d82674c8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3220, "upload_time": "2019-04-02T07:32:04", "url": "https://files.pythonhosted.org/packages/03/44/4132e9b544e7953dfa61eca48a07ff7719c473594e95d10accd9a42766f9/django-google-auth2-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "78cbc833125904799c9ed9c9921b3d11", "sha256": "9ea3eb463b411829bd24c7ede6ded657a67cf9bf94ccddd4eaf36ed4049662fc" }, "downloads": -1, "filename": "django-google-auth2-0.0.3.tar.gz", "has_sig": false, "md5_digest": "78cbc833125904799c9ed9c9921b3d11", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3219, "upload_time": "2019-04-02T07:40:32", "url": "https://files.pythonhosted.org/packages/90/d7/fe6c35c5bc78fdb5cb5abc498935452cf39f01ac483827a18598b408f841/django-google-auth2-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "145935cfe84abda4da9474db6191a5b9", "sha256": "4ea92f4002f23e75de2ce350cfd09ed1846b57551831f1db44c19661d8cb0e72" }, "downloads": -1, "filename": "django-google-auth2-0.0.4.tar.gz", "has_sig": false, "md5_digest": "145935cfe84abda4da9474db6191a5b9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10759, "upload_time": "2019-04-02T08:04:20", "url": "https://files.pythonhosted.org/packages/90/de/02a32f085d9c928a989ec9faa2b33a131e6e6063f84cad212d3440564729/django-google-auth2-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "b0fa20f50d0112047d459b4cca7aea71", "sha256": "1a861d4898c11617337328f9de0307ff6aaa8cf7bf566500fda8b0e4b5a47ce3" }, "downloads": -1, "filename": "django-google-auth2-0.0.5.tar.gz", "has_sig": false, "md5_digest": "b0fa20f50d0112047d459b4cca7aea71", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10514, "upload_time": "2019-04-02T08:06:33", "url": "https://files.pythonhosted.org/packages/a7/04/01f5768db69ba97939960a37a7ce0bb74412675317af8d3b7c7cf46de3b1/django-google-auth2-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "9f340cc3e92a5367daadf79ffca45aa2", "sha256": "7680f4e7a166cf1106818aae3fe700fb56224cc18a05e455e943fd5cd04e9f63" }, "downloads": -1, "filename": "django-google-auth2-0.0.6.tar.gz", "has_sig": false, "md5_digest": "9f340cc3e92a5367daadf79ffca45aa2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14202, "upload_time": "2019-04-02T11:39:34", "url": "https://files.pythonhosted.org/packages/21/65/475616ef183f94fee3486104a2de2a359fc5d3d3f43f06d51983a18f7038/django-google-auth2-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "1d97cf25e2e3065f724f8a7e60c3b707", "sha256": "d4145de6fb321c9eb8f665573fb2322ea9d2c492c334550180723065860afcb8" }, "downloads": -1, "filename": "django-google-auth2-0.0.7.tar.gz", "has_sig": false, "md5_digest": "1d97cf25e2e3065f724f8a7e60c3b707", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14314, "upload_time": "2019-04-02T12:02:49", "url": "https://files.pythonhosted.org/packages/aa/af/93bca5f2feffebbdbb3c350d1ad1f81a0c92b66a4094d899f73f5501def8/django-google-auth2-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "3c9d045c0c7cfe5988cf8bf4a64bcc38", "sha256": "d0b46bbb687d43998b1aa6b4546b91dad85935cbcde75cbbef13935be89d5a6e" }, "downloads": -1, "filename": "django-google-auth2-0.0.8.tar.gz", "has_sig": false, "md5_digest": "3c9d045c0c7cfe5988cf8bf4a64bcc38", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14311, "upload_time": "2019-04-03T01:55:26", "url": "https://files.pythonhosted.org/packages/91/f9/d1c976139e019ce5b82be4718740bc3f0a75ed8bb311c411f5b0ae7cf76b/django-google-auth2-0.0.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3c9d045c0c7cfe5988cf8bf4a64bcc38", "sha256": "d0b46bbb687d43998b1aa6b4546b91dad85935cbcde75cbbef13935be89d5a6e" }, "downloads": -1, "filename": "django-google-auth2-0.0.8.tar.gz", "has_sig": false, "md5_digest": "3c9d045c0c7cfe5988cf8bf4a64bcc38", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14311, "upload_time": "2019-04-03T01:55:26", "url": "https://files.pythonhosted.org/packages/91/f9/d1c976139e019ce5b82be4718740bc3f0a75ed8bb311c411f5b0ae7cf76b/django-google-auth2-0.0.8.tar.gz" } ] }