Skip to main content

Librería para añadir autenticación con Google en aplicaciones web con el framework de Streamlit.

Project description

Releases

Streamlit App

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

google-auth-st-0.3.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

google_auth_st-0.3-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page