Librería para añadir autenticación con Google en aplicaciones web con el framework de Streamlit.
Project description
Author: @valantoni
Installation
pip install google-auth-st
🔐 google-auth-st
A python package for adding google auth to your streamlit apps!
Documentation
Once you configure the authentication on st.secrets
, you can use the the library methods to conditionally render the content of the page:
from google_auth_st import add_auth
add_auth()
#after authentication, the email is stored in session state
st.write(st.session_state.email)
This package expects that you have a .streamlit/secrets.toml
file which you will have to create. Inside it, you will need to add Google API information that runs the authentication parts of the package. If you already have all of your information for authentication providers, here is how the package expects your secrets file to look.
redirect_uris = "http://localhost:8501/"
testing_mode = true
client_id = ''
client_secret = ''
redirect_url_test = 'http://localhost:8501/'
redirect_url = "https://your_app_url..."
Feedback:
If you have feedback about this package, please reach out to me on instagram.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for google_auth_st-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4088736ef26070eea2f4ad9332b45757f01045fde0156588b9349ef0382dc2e7 |
|
MD5 | 8161d29b8ae5e1410d63bd9e12e773c2 |
|
BLAKE2b-256 | 409ee2d5b8dba67d79ef87b18937048968e89e1d1ba60026f677278be2611ee7 |