simple-flask-google-login


Namesimple-flask-google-login JSON
Version 0.3.0 PyPI version JSON
download
home_page
SummaryConvenience utility for implementing Google login with Flask.
upload_time2023-06-27 09:36:50
maintainer
docs_urlNone
author
requires_python>=3.8
licenseApache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
keywords flask google login tutorial
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Simple Flask Google Login

Written by [Alvin Wan](https://alvinwan.com) for educational purposes. See the
accompanying tutorial on
[How third-party login works](http://alvinwan.com/how-thirdparty-login-works/).

Convenience utility for implementing Google login with Flask.

This is more useful as a template than as an installable library. Either way,
it's an easy way to get up and running with Google login without much work.

## Get Started

Install the utility with pip.

```bash
pip install simple-flask-google-login
```

Initialize the utility's manager with the Flask app.

```python
from simple_flask_google_login import SimpleFlaskGoogleLogin

SimpleFlaskGoogleLogin(app)
```

Alternatively, initialize with the app after construction.

```python
manager = SimpleFlaskGoogleLogin()
manager.init_app(app)
```

Note that you need 4 prerequisites in order for this to work:

1. **Client Credentials:** This application by default expects
`client_secrets.json` to be in the same directory as the application. This is
the file downloaded from the Google developers console. You can change this by
passing the `client_secrets_path` argument to the `SimpleFlaskGoogleLogin`
constructor.
2. **https:** You must use SSL. Simply add `app.run(ssl_context='adhoc', ...)`.
3. **Secret Key:** Your app must have a secret key set.
4. **Accepted Redirect URI:** On the Google developer console, your Oauth2
client must list the redirect URI `https://127.0.0.1:5000` as an accepted
redirect URI. This is the default redirect URI. You can change this by passing
the `redirect_uri` argument to the `SimpleFlaskGoogleLogin` constructor.

Here's a minimal example with all of these elements.

```python
from flask import Flask, session
from simple_flask_google_login import SimpleFlaskGoogleLogin


app = Flask("Google Login App")
app.secret_key = "YourSecretKeyHere"  # Secret key is needed for OAuth 2.0
SimpleFlaskGoogleLogin(app)


@app.route("/")
def index():
    if 'name' in session:
        return f"Hello {session['name']}! <a href='/logout'>Logout</a>"
    return "<a href='/login'>Login</a>"


if __name__ == "__main__":
    app.run(ssl_context='adhoc')
```

**And you're done!** This is all you need. Now, load the `/login` URL for your
application to start the login flow. Load the `/logout` URL to logout. For a
minimal example, see the `examples/` directory.

**Advanced user**? Keep reading. Here are several customizations you can make
with this utility out of the box.

## Advanced: Customize Google Login

You can change any of the usual Google login configurations:

- **Client secrets path:** This should be a JSON downloaded from the OAuth2
  client in your Google developers console. The file will contain both a client
  ID and a secret.
- **Scopes:** This is the list of scopes that your application is requesting
  access to. By default, the application only requests "basic" information such
  as name and email address.
- **Redirect URI:** This is the URI that Google will send a GET request to, with
  the login code attached to it. This must be an https URL -- no IP addresses or
  custom URL protocols (i.e., deeplinks). By default, this is your application's
  login callback page.

```python
manager = SimpleFlaskGoogleLogin(
    client_secrets_path='/path/to/client_secrets.json',
    scopes=['profile', 'email'],
    redirect_uri='https://example.com/login/callback'
)
```

## Advanced: Customize routes

You can rename any of the routes. For example, say you want to use `/login` for
a general login page with several options. You could then redefine these
routes to be `/google/login`, for example.

```python
manager = SimpleFlaskGoogleLogin()
manager.init_app(app, login_endpoint='/google/login')
# creates a login route at `/google/login`
```

You can add custom handlers to all of the endpoints, to customize different
behaviors. For example, open a new browser with the authorization URL, instead
of opening in the current tab.

```python
import webbrowser

def handler(authorization_url):
    webbrowser.open(authorization_url)
    return f"If redirect fails, click <a href='{authorization_url}'>here</a>."

manager = SimpleFlaskGoogleLogin(authorization_url_handler=handler)
```

Finally, you can ask the manager to completely skip an endpoint and write one
from scratch, by "naming" the endpoint `None`.

```python
manager = SimpleFlaskGoogleLogin()
manager.init_app(app, login_endpoint=None)
```

## Why create this?

My previous favorite [Flask-GoogleLogin](https://pypi.org/project/Flask-GoogleLogin/)
is now deprecated, and I'm too lazy to relearn oauth2 every time I want to
support Google login. This library is at least quick starter code. Granted,
there are [many](https://github.com/andygarcia86/python-flask-google-oauth-login) 
[other](https://github.com/seunkoko/Python-Flask-Google-Auth) 
implementations, but I wanted a *super* barebones one -- not one mixed and
matched with 
[SQL and flask-login](https://github.com/realpython/materials/blob/master/simple-flask-google-login/app.py)
 and a slew of other random libraries.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "simple-flask-google-login",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "flask,google,login,tutorial",
    "author": "",
    "author_email": "Alvin Wan <hi@alvinwan.com>",
    "download_url": "https://files.pythonhosted.org/packages/62/74/fdf153e60f787d064b386292f59a904bb0bde071d40a82924d1fd70fcab4/simple-flask-google-login-0.3.0.tar.gz",
    "platform": null,
    "description": "# Simple Flask Google Login\n\nWritten by [Alvin Wan](https://alvinwan.com) for educational purposes. See the\naccompanying tutorial on\n[How third-party login works](http://alvinwan.com/how-thirdparty-login-works/).\n\nConvenience utility for implementing Google login with Flask.\n\nThis is more useful as a template than as an installable library. Either way,\nit's an easy way to get up and running with Google login without much work.\n\n## Get Started\n\nInstall the utility with pip.\n\n```bash\npip install simple-flask-google-login\n```\n\nInitialize the utility's manager with the Flask app.\n\n```python\nfrom simple_flask_google_login import SimpleFlaskGoogleLogin\n\nSimpleFlaskGoogleLogin(app)\n```\n\nAlternatively, initialize with the app after construction.\n\n```python\nmanager = SimpleFlaskGoogleLogin()\nmanager.init_app(app)\n```\n\nNote that you need 4 prerequisites in order for this to work:\n\n1. **Client Credentials:** This application by default expects\n`client_secrets.json` to be in the same directory as the application. This is\nthe file downloaded from the Google developers console. You can change this by\npassing the `client_secrets_path` argument to the `SimpleFlaskGoogleLogin`\nconstructor.\n2. **https:** You must use SSL. Simply add `app.run(ssl_context='adhoc', ...)`.\n3. **Secret Key:** Your app must have a secret key set.\n4. **Accepted Redirect URI:** On the Google developer console, your Oauth2\nclient must list the redirect URI `https://127.0.0.1:5000` as an accepted\nredirect URI. This is the default redirect URI. You can change this by passing\nthe `redirect_uri` argument to the `SimpleFlaskGoogleLogin` constructor.\n\nHere's a minimal example with all of these elements.\n\n```python\nfrom flask import Flask, session\nfrom simple_flask_google_login import SimpleFlaskGoogleLogin\n\n\napp = Flask(\"Google Login App\")\napp.secret_key = \"YourSecretKeyHere\"  # Secret key is needed for OAuth 2.0\nSimpleFlaskGoogleLogin(app)\n\n\n@app.route(\"/\")\ndef index():\n    if 'name' in session:\n        return f\"Hello {session['name']}! <a href='/logout'>Logout</a>\"\n    return \"<a href='/login'>Login</a>\"\n\n\nif __name__ == \"__main__\":\n    app.run(ssl_context='adhoc')\n```\n\n**And you're done!** This is all you need. Now, load the `/login` URL for your\napplication to start the login flow. Load the `/logout` URL to logout. For a\nminimal example, see the `examples/` directory.\n\n**Advanced user**? Keep reading. Here are several customizations you can make\nwith this utility out of the box.\n\n## Advanced: Customize Google Login\n\nYou can change any of the usual Google login configurations:\n\n- **Client secrets path:** This should be a JSON downloaded from the OAuth2\n  client in your Google developers console. The file will contain both a client\n  ID and a secret.\n- **Scopes:** This is the list of scopes that your application is requesting\n  access to. By default, the application only requests \"basic\" information such\n  as name and email address.\n- **Redirect URI:** This is the URI that Google will send a GET request to, with\n  the login code attached to it. This must be an https URL -- no IP addresses or\n  custom URL protocols (i.e., deeplinks). By default, this is your application's\n  login callback page.\n\n```python\nmanager = SimpleFlaskGoogleLogin(\n    client_secrets_path='/path/to/client_secrets.json',\n    scopes=['profile', 'email'],\n    redirect_uri='https://example.com/login/callback'\n)\n```\n\n## Advanced: Customize routes\n\nYou can rename any of the routes. For example, say you want to use `/login` for\na general login page with several options. You could then redefine these\nroutes to be `/google/login`, for example.\n\n```python\nmanager = SimpleFlaskGoogleLogin()\nmanager.init_app(app, login_endpoint='/google/login')\n# creates a login route at `/google/login`\n```\n\nYou can add custom handlers to all of the endpoints, to customize different\nbehaviors. For example, open a new browser with the authorization URL, instead\nof opening in the current tab.\n\n```python\nimport webbrowser\n\ndef handler(authorization_url):\n    webbrowser.open(authorization_url)\n    return f\"If redirect fails, click <a href='{authorization_url}'>here</a>.\"\n\nmanager = SimpleFlaskGoogleLogin(authorization_url_handler=handler)\n```\n\nFinally, you can ask the manager to completely skip an endpoint and write one\nfrom scratch, by \"naming\" the endpoint `None`.\n\n```python\nmanager = SimpleFlaskGoogleLogin()\nmanager.init_app(app, login_endpoint=None)\n```\n\n## Why create this?\n\nMy previous favorite [Flask-GoogleLogin](https://pypi.org/project/Flask-GoogleLogin/)\nis now deprecated, and I'm too lazy to relearn oauth2 every time I want to\nsupport Google login. This library is at least quick starter code. Granted,\nthere are [many](https://github.com/andygarcia86/python-flask-google-oauth-login) \n[other](https://github.com/seunkoko/Python-Flask-Google-Auth) \nimplementations, but I wanted a *super* barebones one -- not one mixed and\nmatched with \n[SQL and flask-login](https://github.com/realpython/materials/blob/master/simple-flask-google-login/app.py)\n and a slew of other random libraries.\n",
    "bugtrack_url": null,
    "license": "Apache License Version 2.0, January 2004 http://www.apache.org/licenses/  TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION  1. Definitions.  \"License\" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.  \"Licensor\" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.  \"Legal Entity\" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, \"control\" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.  \"You\" (or \"Your\") shall mean an individual or Legal Entity exercising permissions granted by this License.  \"Source\" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.  \"Object\" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.  \"Work\" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).  \"Derivative Works\" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.  \"Contribution\" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, \"submitted\" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as \"Not a Contribution.\"  \"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.  2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.  3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.  4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:  (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and  (b) You must cause any modified files to carry prominent notices stating that You changed the files; and  (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and  (d) If the Work includes a \"NOTICE\" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.  You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.  5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.  6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.  7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.  8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.  9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.  END OF TERMS AND CONDITIONS  APPENDIX: How to apply the Apache License to your work.  To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets \"[]\" replaced with your own identifying information. (Don't include the brackets!)  The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same \"printed page\" as the copyright notice for easier identification within third-party archives.  Copyright [yyyy] [name of copyright owner]  Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at  http://www.apache.org/licenses/LICENSE-2.0  Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ",
    "summary": "Convenience utility for implementing Google login with Flask.",
    "version": "0.3.0",
    "project_urls": {
        "Homepage": "https://github.com/alvinwan/simple-flask-google-login"
    },
    "split_keywords": [
        "flask",
        "google",
        "login",
        "tutorial"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5b4f4a3060d1089970dcd8f8cb7a304d1dc41615c2bdff92d27c85112fe786e1",
                "md5": "0dceffd10d0f1a0169685ad500d4d2c1",
                "sha256": "cf786d6c4948f81cd0c15ec7adca655fac4b2adc7e199afde2089ee99c7e7938"
            },
            "downloads": -1,
            "filename": "simple_flask_google_login-0.3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0dceffd10d0f1a0169685ad500d4d2c1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 13447,
            "upload_time": "2023-06-27T09:36:49",
            "upload_time_iso_8601": "2023-06-27T09:36:49.110957Z",
            "url": "https://files.pythonhosted.org/packages/5b/4f/4a3060d1089970dcd8f8cb7a304d1dc41615c2bdff92d27c85112fe786e1/simple_flask_google_login-0.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6274fdf153e60f787d064b386292f59a904bb0bde071d40a82924d1fd70fcab4",
                "md5": "37060184abf217ecb22404768e3fb048",
                "sha256": "e3bf15fcf47c28b00cd77b32fa244c4106b1769fcba53b26425aa2c168520b3e"
            },
            "downloads": -1,
            "filename": "simple-flask-google-login-0.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "37060184abf217ecb22404768e3fb048",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 15738,
            "upload_time": "2023-06-27T09:36:50",
            "upload_time_iso_8601": "2023-06-27T09:36:50.601983Z",
            "url": "https://files.pythonhosted.org/packages/62/74/fdf153e60f787d064b386292f59a904bb0bde071d40a82924d1fd70fcab4/simple-flask-google-login-0.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-27 09:36:50",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "alvinwan",
    "github_project": "simple-flask-google-login",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "simple-flask-google-login"
}
        
Elapsed time: 0.07850s