{ "info": { "author": "Alexander Saltanov", "author_email": "asd@mokote.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Flask-GoogleAuth\n================\nThis is a partial port of torando.auth to be used with Flask.\n\nIt is small, self contained and do not use any filesystem operations.\nGreate for internal apps.\n\nWritten by Alexander Saltanov, inspired by Kenneth Reitz.\n\n\nUsage\n-----\nExample usage for Google Federated Login.\n\nRoutes ``/login/`` and ``/logout/`` will be provided automagically.\n\nRequire an account from a given Google Apps domain for your Flask apps::\n\n from flask import Flask, g\n from flask_googleauth import GoogleFederated\n\n # Setup Flask\n app = Flask(__name__)\n app.secret_key = \"random secret key\"\n\n # Setup Google Federated Auth\n auth = GoogleFederated(\"mokote.com\", app)\n\n @app.route(\"/\")\n @auth.required\n def secret():\n # Once user is authenticated, his name and email are accessible as\n # g.user.name and g.user.email.\n return \"You have rights to be here, %s (%s)\" % (g.user.name, g.user.email)\n\n app.run()\n\nIf you want to authenticate your users with general Google OpenID you should import and use ``GoogleAuth`` instead of ``GoogleFederated``::\n\n auth = GoogleAuth(app)\n\nYou can force all requests to be authenticated by setting ``force_auth_on_every_request`` on the auth object::\n\n auth.force_auth_on_every_request = True\n\nInstall\n-------\nTo install Flask-GoogleAuth::\n\n pip install flask-googleauth\n\n\nPrerequisites\n-------------\nBe sure that your Google Apps domain is enabled to be an OpenID provider under \"Advanced tools\" \u2192 \"Federated Login using OpenID\".", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/sashka/flask-googleauth", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "Flask-GoogleAuth", "package_url": "https://pypi.org/project/Flask-GoogleAuth/", "platform": "any", "project_url": "https://pypi.org/project/Flask-GoogleAuth/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/sashka/flask-googleauth" }, "release_url": "https://pypi.org/project/Flask-GoogleAuth/0.4.2/", "requires_dist": null, "requires_python": null, "summary": "Super simple OpenID and Google Federated Auth for Flask apps.", "version": "0.4.2" }, "last_serial": 1010214, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "1e1a98c15cf495578e486fef3c7f93f3", "sha256": "d8903829a9456512a5815c62098c1ec92321d728dfa0870d9c6b71b54a81aab7" }, "downloads": -1, "filename": "Flask-GoogleAuth-0.1.tar.gz", "has_sig": false, "md5_digest": "1e1a98c15cf495578e486fef3c7f93f3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4820, "upload_time": "2012-07-06T14:36:32", "url": "https://files.pythonhosted.org/packages/3d/50/f5112a72f77dd2054b918fd1acba74e8a3eb93675be3a222c16a8eaffb30/Flask-GoogleAuth-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "85926cddc740e165fcd791f9637c5b18", "sha256": "95400c8772a7c975b4803743cfae330a635e011ed350da7398a658342c5b103f" }, "downloads": -1, "filename": "Flask-GoogleAuth-0.2.tar.gz", "has_sig": false, "md5_digest": "85926cddc740e165fcd791f9637c5b18", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4855, "upload_time": "2012-11-14T16:35:00", "url": "https://files.pythonhosted.org/packages/c3/90/193007efa922318f4748252e9bd3d1f306755ef42fc46bea5f0618fb7e3c/Flask-GoogleAuth-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "c272b7334ae48e161e255bb85c1db356", "sha256": "fa730a2578a95d540b37d0fce5aff66380daf13f122278177832997b43da3c37" }, "downloads": -1, "filename": "Flask-GoogleAuth-0.3.tar.gz", "has_sig": false, "md5_digest": "c272b7334ae48e161e255bb85c1db356", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4986, "upload_time": "2013-02-10T18:13:33", "url": "https://files.pythonhosted.org/packages/9a/e5/5525e82e9ee59dc13936f3f269094a363ee33fae739e7669cf811a14d609/Flask-GoogleAuth-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "9d7c2a1dc85220c7befd27fb463ba4b0", "sha256": "637ab094938d75fd32409d3290b00e0c374146e35ad62a37e9795538f4ed5f84" }, "downloads": -1, "filename": "Flask-GoogleAuth-0.4.tar.gz", "has_sig": false, "md5_digest": "9d7c2a1dc85220c7befd27fb463ba4b0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4985, "upload_time": "2013-07-01T17:50:38", "url": "https://files.pythonhosted.org/packages/c8/60/2f559850e8acf13b56ac071356e34b3778b30210745d81f00d74b4698cb6/Flask-GoogleAuth-0.4.tar.gz" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "bc33c1e0582838253a05884e02b62e74", "sha256": "c4aa0e73e05bfa4e5d8251f0bd2876c1a2a05672dadcd5f43e25606cb658adfb" }, "downloads": -1, "filename": "Flask-GoogleAuth-0.4.2.tar.gz", "has_sig": false, "md5_digest": "bc33c1e0582838253a05884e02b62e74", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5468, "upload_time": "2014-02-24T14:30:38", "url": "https://files.pythonhosted.org/packages/38/b8/2b3c510a3a4cce9af59552158c36eb86302f7aab9714ea708431826ef6c9/Flask-GoogleAuth-0.4.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bc33c1e0582838253a05884e02b62e74", "sha256": "c4aa0e73e05bfa4e5d8251f0bd2876c1a2a05672dadcd5f43e25606cb658adfb" }, "downloads": -1, "filename": "Flask-GoogleAuth-0.4.2.tar.gz", "has_sig": false, "md5_digest": "bc33c1e0582838253a05884e02b62e74", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5468, "upload_time": "2014-02-24T14:30:38", "url": "https://files.pythonhosted.org/packages/38/b8/2b3c510a3a4cce9af59552158c36eb86302f7aab9714ea708431826ef6c9/Flask-GoogleAuth-0.4.2.tar.gz" } ] }