Name | StreamlitGAuth JSON |
Version |
2.0.9
JSON |
| download |
home_page | |
Summary | st_googleauth is a Python library that provides Streamlit integration for Google Authenticator. It enables single sign-on (SSO) with Google Authenticator for Streamlit applications. |
upload_time | 2023-11-09 05:56:00 |
maintainer | Rahul Katoch |
docs_url | None |
author | rahul katoch |
requires_python | >=3.6 |
license | MIT |
keywords |
streamlit
google-authenticator
sso
goole_oauth
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# StreamlitGAuth
StreamlitGAuth is a Python library that simplifies the integration of Google Authenticator-based Single Sign-On (SSO) with Streamlit applications. With StreamlitGAuth, you can enhance the security of your Streamlit apps by enabling two-factor authentication through Google Authenticator.
![Sample image](https://github.com/Rahulkatoch99/Appening-assigment/blob/master/streamlitGauth.png?raw=true)
## Installation
You can install StreamlitGAuth using pip
# Usage
```python
import streamlit as st
from StreamlitGauth.google_auth import Google_auth
client_id = ""
client_secret = ""
redirect_uri = "http://localhost:8501"
login = Google_auth(
clientId=client_id, clientSecret=client_secret, redirect_uri=redirect_uri
)
if login == "authenticated":
st.success("hello")
pass
```
Replace "your_client_id" and "your_client_secret" with your actual Google OAuth 2.0 credentials.
# Example Streamlit Application
```python
import streamlit as st
from StreamlitGauth.google_auth import Google_auth
client_id = "hasjh5jk498ufiu3h89g8-aghdszjhk3k.apps.googleusercontent.com"
client_secret = "afsghfbkhfdjdsgfdjhfjkfhjkfhkjhkjdhks"
redirect_uri = "http://localhost:8501"
login = Google_auth(clientId=client_id, clientSecret=client_secret, redirect_uri=redirect_uri)
if login == "authenticated":
# your streamlit applciation
pass
else:
st.warning("login failed")
```
# Contributing
If you would like to contribute to StreamlitGAuth, please open an issue or submit a pull request on our GitHub repository.
# License
This library is released under the [MIT License](LICENSE) to encourage collaboration and use in various applications.
Raw data
{
"_id": null,
"home_page": "",
"name": "StreamlitGAuth",
"maintainer": "Rahul Katoch",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "rahulkatoch99@gmail.com",
"keywords": "streamlit google-authenticator SSO goole_oauth",
"author": "rahul katoch",
"author_email": "rahulkatoch99@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/d2/6b/a7f779210ddb4f5faae3f22bc489d19f2ecd376776bd460650cd9815fb0e/StreamlitGAuth-2.0.9.tar.gz",
"platform": null,
"description": "# StreamlitGAuth\n\nStreamlitGAuth is a Python library that simplifies the integration of Google Authenticator-based Single Sign-On (SSO) with Streamlit applications. With StreamlitGAuth, you can enhance the security of your Streamlit apps by enabling two-factor authentication through Google Authenticator.\n\n![Sample image](https://github.com/Rahulkatoch99/Appening-assigment/blob/master/streamlitGauth.png?raw=true)\n\n## Installation\n\nYou can install StreamlitGAuth using pip\n\n# Usage\n\n```python\nimport streamlit as st\nfrom StreamlitGauth.google_auth import Google_auth\n\nclient_id = \"\"\nclient_secret = \"\"\nredirect_uri = \"http://localhost:8501\"\n\nlogin = Google_auth(\n clientId=client_id, clientSecret=client_secret, redirect_uri=redirect_uri\n)\n\nif login == \"authenticated\":\n st.success(\"hello\")\n pass\n\n\n\n```\n\nReplace \"your_client_id\" and \"your_client_secret\" with your actual Google OAuth 2.0 credentials.\n\n# Example Streamlit Application\n\n```python\n\nimport streamlit as st\nfrom StreamlitGauth.google_auth import Google_auth\n\n\nclient_id = \"hasjh5jk498ufiu3h89g8-aghdszjhk3k.apps.googleusercontent.com\"\nclient_secret = \"afsghfbkhfdjdsgfdjhfjkfhjkfhkjhkjdhks\"\nredirect_uri = \"http://localhost:8501\"\n\nlogin = Google_auth(clientId=client_id, clientSecret=client_secret, redirect_uri=redirect_uri)\n\nif login == \"authenticated\":\n # your streamlit applciation\n pass\n\nelse:\n st.warning(\"login failed\")\n\n```\n\n# Contributing\n\nIf you would like to contribute to StreamlitGAuth, please open an issue or submit a pull request on our GitHub repository.\n\n# License\n\nThis library is released under the [MIT License](LICENSE) to encourage collaboration and use in various applications.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "st_googleauth is a Python library that provides Streamlit integration for Google Authenticator. It enables single sign-on (SSO) with Google Authenticator for Streamlit applications.",
"version": "2.0.9",
"project_urls": null,
"split_keywords": [
"streamlit",
"google-authenticator",
"sso",
"goole_oauth"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "27b98f232ce8daad8320476c01d5315af821c33d5dd33565d16feed16028a2f0",
"md5": "d1b225f9ecc1b2e47e985d02348b212c",
"sha256": "70b9d02b8ace0268ef996bbfb0aee6449f490c2372b0225807cf13131df1565f"
},
"downloads": -1,
"filename": "StreamlitGAuth-2.0.9-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d1b225f9ecc1b2e47e985d02348b212c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 3985,
"upload_time": "2023-11-09T05:55:58",
"upload_time_iso_8601": "2023-11-09T05:55:58.186672Z",
"url": "https://files.pythonhosted.org/packages/27/b9/8f232ce8daad8320476c01d5315af821c33d5dd33565d16feed16028a2f0/StreamlitGAuth-2.0.9-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d26ba7f779210ddb4f5faae3f22bc489d19f2ecd376776bd460650cd9815fb0e",
"md5": "b821672430bd92703e6b3b5a6abdba00",
"sha256": "ba67776fb373308f7584091a3dbfe73bac5e815d40db9fa451ebe839222b65b7"
},
"downloads": -1,
"filename": "StreamlitGAuth-2.0.9.tar.gz",
"has_sig": false,
"md5_digest": "b821672430bd92703e6b3b5a6abdba00",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 3814,
"upload_time": "2023-11-09T05:56:00",
"upload_time_iso_8601": "2023-11-09T05:56:00.078451Z",
"url": "https://files.pythonhosted.org/packages/d2/6b/a7f779210ddb4f5faae3f22bc489d19f2ecd376776bd460650cd9815fb0e/StreamlitGAuth-2.0.9.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-11-09 05:56:00",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "streamlitgauth"
}