Skip to content

rasnes/streamlit-auth-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

streamlit-auth-test

Test Google OAuth login on streamlit app

Using code from here 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.

About

Test Google OAuth login on streamlit app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages