https://github.com/rasnes/streamlit-auth-test
Test Google OAuth login on streamlit app
https://github.com/rasnes/streamlit-auth-test
Last synced: over 1 year ago
JSON representation
Test Google OAuth login on streamlit app
- Host: GitHub
- URL: https://github.com/rasnes/streamlit-auth-test
- Owner: rasnes
- Created: 2022-06-16T20:40:33.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-05T10:43:19.000Z (almost 4 years ago)
- Last Synced: 2025-01-21T01:13:26.479Z (over 1 year ago)
- Language: Python
- Size: 51.8 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# streamlit-auth-test
Test Google OAuth login on streamlit app
Using code from [here](https://towardsdatascience.com/implementing-google-oauth-in-streamlit-bb7c3be0082c)
but using `st.session_state` rather than the session_state script linked to.
RESULT: it seems to be working as intended. Some things to note:
- This will be a login link from the app itself, not a "login wall".
- If creating OAuth client and keys in GCP as "Internal", only `@coop.no` email holders can access the page.
- The `httpx-oauth` package seems a bit risky to use wrt. long-term stability. It has only 59 stars per
16 June 2022 and a single maintainer.
- The code should be modularised somehow. The simplest is possibly to move all dashboard logic
(to which the user should get access to after succesful login) into modules, and then import those as
a `main` function in `app.py`.