{"id":15921642,"url":"https://github.com/devforfu/streamlit_auth","last_synced_at":"2025-04-03T12:21:34.261Z","repository":{"id":75401524,"uuid":"393970330","full_name":"devforfu/streamlit_auth","owner":"devforfu","description":"Poor man's authentication for Streamlit dashboards","archived":false,"fork":false,"pushed_at":"2021-08-08T14:08:53.000Z","size":161,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-09T01:42:39.859Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devforfu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-08T13:37:07.000Z","updated_at":"2024-03-11T11:42:30.000Z","dependencies_parsed_at":"2023-06-06T09:45:50.024Z","dependency_job_id":null,"html_url":"https://github.com/devforfu/streamlit_auth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devforfu%2Fstreamlit_auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devforfu%2Fstreamlit_auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devforfu%2Fstreamlit_auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devforfu%2Fstreamlit_auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devforfu","download_url":"https://codeload.github.com/devforfu/streamlit_auth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246998366,"owners_count":20866724,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-06T20:01:30.251Z","updated_at":"2025-04-03T12:21:34.241Z","avatar_url":"https://github.com/devforfu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Password-Protected Streamlit Dashboards\n\nA small example showing how to hide a dashboard behind a trivial password-based single-user \nauthentication.\n\n\u003e Please note that it is not a \"real-world\", production-ready approach to \n\u003e protect access to your dashboards. It is just a very simple way to somehow \n\u003e restrict access if running on a host with public IP.\n\n## How It Works?\n\nThis example shows a password-input widget to ask user for a password and saves it \nas a part of Streamlit's session. The password is retrieved each time when the \nuser interacts with the dashboard. However, each time when you refresh the dashboard\nor restart it, the state is lost and password should be typed again.\n\n## Example\n\nStart Streamlit as the following command shows.\n```\nDASHBOARD_PASSWORD=123 python -m streamlit run main.py\n```\n\nOpen a link printed to the terminal with your browser. Then you'll see a \npassword-protected dashboard as the following GIF shows.\n\n![Authentication example](assets/auth.gif)\n\n\n## References\n\n1) [Discussion on Streamlit forum](https://discuss.streamlit.io/t/user-authentication/612/53)\n2) [Hacking session state](https://gist.github.com/tvst/036da038ab3e999a64497f42de966a92)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevforfu%2Fstreamlit_auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevforfu%2Fstreamlit_auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevforfu%2Fstreamlit_auth/lists"}