Hi guys, I wanted to make my user able to log in and register with Google on my website, but I’m not able to do so using the methods presented here in the community, these are some that I tried, could you help me?
Hello !
I am Working on a simple streamlit app where i would like to add a Google Authentication before the user acess the app.
can anyone help me for doing that ?
Thank you all
Hello Streamlit community!
I recently created a small PyPI package called streamlit-google-auth.
This package provides a simple and easy-to-use integration of Google authentication in your Streamlit application.
Getting Started
Install the package:
pip install streamlit-google-auth
Create a Google Cloud Platform project and obtain the client ID and client secret. You can follow the instructions here to create the credentials.
Save the client ID and client secret in a JSON file (e.g.,…
Using this wonderful code Implementing Google OAuth in Streamlit | by Duc Anh Bui | Towards Data Science , I refactor it to simply use as pip.
Just do:
pip install git+https://github.com/hunkim/streamlit-google-oauth
Then add login code:
login_info = oauth.login(
client_id=client_id,
client_secret=client_secret,
redirect_uri=redirect_uri,
login_button_text="Continue with Google",
logout_button_text="Logout",
)
if login_info:
user_id, user_e…
https://discuss.streamlit.io/t/google-sign-in/32957/3
system
Closed
December 24, 2024, 4:43pm
2
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.