{ "info": { "author": "AXANT", "author_email": "tech@axant.it", "bugtrack_url": null, "classifiers": [], "description": "About googleplusauth\n--------------------\n\ngoogleplusauth is a Pluggable application for TurboGears2.\n\nIt aims at making easy to implement authentication and registration with\nGoogle in any TurboGears2 application.\n\nInstalling\n-----------\n\ngoogleplusauth can be installed both from pypi or from bitbucket::\n\n pip install googleplusauth\n\nshould just work for most of the users\n\nPlugging googleplusauth\n-----------------------\n\nIn your application *config/app_cfg.py* import **plug**::\n\n from tgext.pluggable import plug\n\nThen at the *end of the file* call plug with googleplusauth::\n\n plug(base_config, 'googleplusauth')\n\n\nGoogleplushaut Helpers\n----------------------\n\ngoogleplusauth provides a helpers which will automatically\ngenerate the buttons and the javascript required to let\nyour users log into your application using Google:\n\n * **h.googleplusauth.login_button(client_id, scope=None, data_cookiepolicy=None, img_btn_login=None, remember=None)**\n Places a login/registration button, automatically creates a new user if he never logged with google, otherwise simply logs him in.\n\n The ``client_id`` parameter is YOUR_CLIENT_ID.apps.googleusercontent.com\n\n The ``scope`` parameter is the permissions that the application will ask to google.\n By default those are only https://www.googleapis.com/auth/userinfo.email.\n For more scope: https://developers.google.com/oauthplayground/\n\n The ``data_cookiepolicy`` parameter indicate the domains for which to create sign-in cookies.\n\n The ``img_btn_login`` parameter indicate the button image url.\n\n The ``remember`` parameter can be used to log the user with an expiration date instead\n of using a session cookie, so that the session can last longer than the browser tab life.\n\nThis is the html of the button, if you want customize the button style: ::\n\n
\n
\n Google Login\n
\n
\n\nAvailable Hooks\n---------------\n\ngoogleplusauth makes available a some hooks which will be\ncalled during some actions to alter the default\nbehavior of the appplications:\n\n * **googleplusauth.on_registration(google_response, user)** -> Runs when it is registering a new user from google\n login, permits to add or modify additional data to the user.\n * **googleplusauth.on_login(google_response, user)** -> Runs when user perform google login,\n permits to update the user data.\n\n\nGoogle Id and Profile Picture\n------------------------------\n\nUsers will have a new related entity called ``googleplusauth``.\nAccessing ``user.googleplusauth`` it is possible to access the user ``user.googleplusauth.google_id``\nand ``user.googleplusauth.profile_picture`` and more.\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/axant/tgapp-googleplusauth", "keywords": "turbogears2.application", "license": "", "maintainer": "", "maintainer_email": "", "name": "tgapp-googlePlusAuth", "package_url": "https://pypi.org/project/tgapp-googlePlusAuth/", "platform": "", "project_url": "https://pypi.org/project/tgapp-googlePlusAuth/", "project_urls": { "Homepage": "https://github.com/axant/tgapp-googleplusauth" }, "release_url": "https://pypi.org/project/tgapp-googlePlusAuth/0.0.4/", "requires_dist": null, "requires_python": "", "summary": "Google Authentication for TurboGears2", "version": "0.0.4" }, "last_serial": 3651916, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "d4ed51e9f8f82112c3b5392332222101", "sha256": "2429751848093a01d971437b4ffe22b6338f4aa3b2977c1bf4d5c0e12656cce7" }, "downloads": -1, "filename": "tgapp-googlePlusAuth-0.0.1.tar.gz", "has_sig": false, "md5_digest": "d4ed51e9f8f82112c3b5392332222101", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11161, "upload_time": "2015-11-06T15:15:09", "url": "https://files.pythonhosted.org/packages/f6/74/30200bc07ce642939bc113d66ab653f59c7ee3f2f1d0b5e46701ba6adf0b/tgapp-googlePlusAuth-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "9b5cd0e2115045e4f289510f641da7ac", "sha256": "59751e15eab5098a86fa97de97a0620ef9a3c8c01b99973b285dbc1bf77f4a2c" }, "downloads": -1, "filename": "tgapp-googlePlusAuth-0.0.2.tar.gz", "has_sig": false, "md5_digest": "9b5cd0e2115045e4f289510f641da7ac", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11178, "upload_time": "2015-11-20T14:43:53", "url": "https://files.pythonhosted.org/packages/1a/94/8a050255d8ec547de87972a269825bc3f3aaab6bee8e3ab4ad6c13c8555e/tgapp-googlePlusAuth-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "3f3e7daa1656a40dbf6f47dc07150d15", "sha256": "68ca61a0304dcaa8f3e183f0d468ee53f7d48b8843a583371dc8faad60376d4b" }, "downloads": -1, "filename": "tgapp-googlePlusAuth-0.0.3.tar.gz", "has_sig": false, "md5_digest": "3f3e7daa1656a40dbf6f47dc07150d15", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11851, "upload_time": "2018-03-08T16:12:34", "url": "https://files.pythonhosted.org/packages/32/94/6ac98e06b9e2de7c64cfd009b2be4be42676922acb5f555e8c444eb8c5ad/tgapp-googlePlusAuth-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "fb343e2426ee65363506b5a61f0bde2b", "sha256": "9cd09d3ab4b1a77014f07f593ac20d1b43fe8c72ffeaec98cc93cf9f5fde99b8" }, "downloads": -1, "filename": "tgapp-googlePlusAuth-0.0.4.tar.gz", "has_sig": false, "md5_digest": "fb343e2426ee65363506b5a61f0bde2b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11958, "upload_time": "2018-03-08T17:56:57", "url": "https://files.pythonhosted.org/packages/4b/0a/0de91e22113545fc148a05fc9738e227ec2e7d915195b27e58f33842585d/tgapp-googlePlusAuth-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fb343e2426ee65363506b5a61f0bde2b", "sha256": "9cd09d3ab4b1a77014f07f593ac20d1b43fe8c72ffeaec98cc93cf9f5fde99b8" }, "downloads": -1, "filename": "tgapp-googlePlusAuth-0.0.4.tar.gz", "has_sig": false, "md5_digest": "fb343e2426ee65363506b5a61f0bde2b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11958, "upload_time": "2018-03-08T17:56:57", "url": "https://files.pythonhosted.org/packages/4b/0a/0de91e22113545fc148a05fc9738e227ec2e7d915195b27e58f33842585d/tgapp-googlePlusAuth-0.0.4.tar.gz" } ] }