As a data analyst, do you wonder what it takes to add Google Authentication to your Python web app in Streamlit? Well, I tried it, it was a painful challenge...and I feel like a backend developer now. You will see how to:
Configure OAuth secrets
Use the Google oauth Python client to authenticate with your Google account
Build the OAuth flow in a separate FastAPI
After this video, you will have a good understanding of the OAuth2 process in Python Web apps.
---
📧 Check my email list for a compiled version of all my activities on all the Internet ➡ https://andfanilo-newsletter.streamli...
💰 Buy me a coffee to stay awake while editing ➡ https://www.buymeacoffee.com/andfanilo
🗣️ Find my socials ➡ https://andfanilo.com
🔗 Links
Project Source Code: https://github.com/andfanilo/streamli...
Native OAuth2 in Streamlit is coming: https://github.com/streamlit/streamli...
Streamlit OAuth plugins:
streamlit_oauth: https://github.com/dnplus/streamlit-o...
streamlit-google-auth: https://github.com/MrBounty/streamlit...
st_oauth: https://github.com/sfc-gh-bhess/st_oauth
google-auth-oauthlib: https://googleapis.dev/python/google-...
Authlib: https://authlib.org/
requests-oautlib: https://requests-oauthlib.readthedocs...
Google Signin Button: https://developers.google.com/identit...
00:00 Intro
00:32 Create OAuth Secrets
02:20 google-auth-oauthlib
05:21 Moving OAuth 2 out of Streamlit
10:22 Session-based Authentication
13:11 Support Me!
13:32 Moving OAuth 2 back Into Streamlit
15:43 Ideas for a future video
🔧 My tools (Affiliate links to support me!)
📕 Streamlit Official Book - https://amzn.to/3QuRPwl
📷 Main Camera - https://amzn.to/3QvTosB
📷 Main Lens - https://amzn.to/3svYCwq
🎙️ Microphone - https://amzn.to/47l5ewA
🎵 Music & Sound Effects - https://www.epidemicsound.com/referra...
---
🪶 I don't feel like building an auth system after doing this, I'll be using Auth As A Service from now on ahah
⚠️ Links included in this description might be affiliate links. If you purchase a product or service with the links that I provide I may receive a small commission. Thank you for supporting my channel so I can continue providing you with free content!
#streamlit #python #datascience #dataapps
Auf dieser Seite können Sie das Online-Video How I Added Google Auth To a Streamlit App (It Didn't Go Well) mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Fanilo Andrianasolo 18 August 2024 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 3,261 Mal angesehen und es wurde von 122 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!