gaurisp10 / streamlit_login_auth_ui Goto Github PK
View Code? Open in Web Editor NEWIt lets you connect your streamlit application to a pre-built and secure Login/ Sign-Up page.
License: MIT License
It lets you connect your streamlit application to a pre-built and secure Login/ Sign-Up page.
License: MIT License
Could you please update the magic line (ln 14) in encrypted_cookie_manager.py (in streamlit_cookies_manager dist. folder)? Currently Streamlit populates an error message to use updated magic function. I changed to the new st.cache_data, tested login, and did not have any issues on my PC. Also, thanks for creating this component!
The streamlit-option-menu
package is used to render the sidebar:
This works pretty well but creates very long/verbose URLs like:
Instead it would be interesting what a bool arg to the login class would look like instead to render the elements in just the normal page with tabs:
I fixed the caching warning issue, added the get username app, and saved users' data to s3 so it won't delete after each build.
Do you want to merge some of these changes?
Is it possible to allow only one certain domain as a mandatory argument for the signup?
Thank you!
How to solve the error CourierAPIException: <Response [401]> reported in the forgot password
Is there a way to add captcha verification to the login page?
Hello
After following the quickstart guide i get the error
ModuleNotFoundError: No module named 'argon2'
This is fixed with:
python -m pip install argon2_cffi
Could you fix the dependency issue ? (the package ?)
How to retrieve the username that is active in your session, this for purposes of deciding the actions you can perform, something like an administrator and a user.
I'm creating auth page using the code below
import streamlit as st
from streamlit_login_auth_ui.widgets import __login__
__login__obj = __login__(auth_token = "courier_auth_token",
company_name = "BSomename",
width = 200, height = 250,
logout_button_name = 'Logout',
hide_menu_bool = True,
hide_footer_bool = False,
lottie_url = "https://assets6.lottiefiles.com/packages/lf20_5XEJb3YBIg.json")
LOGGED_IN = __login__obj.build_login_ui()
if LOGGED_IN == True:
st.markdown("Your Streamlit Application Begins here!")
However, the menu on the side bar has not been hidden, it still shows all the page inside the folder /pages/...
. AS the pic below:
The app is running on:
I saw in the code that the function check_usr_pass()
is never used in widgets.py and duplicates check_current_passwd()
.
So you could delete it.
I want to assign some permissions based on the username of the logged-in, how do I get the username?
Hi, which python version should we use to avoid this error?
ERROR: Could not find a version that satisfies the requirement streamlit-login-auth-ui (from versions: none)
ERROR: No matching distribution found for streamlit-login-auth-ui
Also would be possible to make it compatible with the newest version of Python?
Thanks!
Hi,
Streamlit now support multipage app (https://docs.streamlit.io/library/get-started/multipage-apps). Then how to use streamlit_login_auth_ui where there are many pages ?
with:
pip install streamlit-login-auth-ui
or
python3 -m pip install streamlit-login-auth-ui
ERROR: Could not find a version that satisfies the requirement streamlit-login-auth-ui (from versions: none)
ERROR: No matching distribution found for streamlit-login-auth-ui
seems streamlit-cookies-manager requiries 3.8.10
ERROR: Package 'streamlit-cookies-manager' requires a different Python: 3.8.10 not in '<4.0,>=3.9'
still with :
(venv) MS-7C51:~/software/streamlit/streamlit_login_auth_ui/streamlit_login_auth_ui$ python -V
Python 3.8.10
~/software/streamlit/streamlit_login_auth_ui/streamlit_login_auth_ui$ pip3 install streamlit-cookies-manager
/home/tony/.local/lib/python3.8/site-packages/pkg_resources/init.py:123: PkgResourcesDeprecationWarning: 0.1.36ubuntu1 is an invalid version and will not be supported in a future release
warnings.warn(
/home/tony/.local/lib/python3.8/site-packages/pkg_resources/init.py:123: PkgResourcesDeprecationWarning: 0.23ubuntu1 is an invalid version and will not be supported in a future release
warnings.warn(
ERROR: Could not find a version that satisfies the requirement streamlit-cookies-manager (from versions: none)
ERROR: No matching distribution found for streamlit-cookies-manager
Is it possible to update it on PyPi so that we can use the new Get_username function?
Thank you.
ModuleNotFoundError: No module named 'argon2'
It would be great to integrate this with different authentication providers, decoupling token collection.
this is the st-pages url" ’https://pypi.org/project/st-pages/
i create a mutipage created by st-pages package.
but i fail .
if LOGGED_IN == True:
st.markdown("Your Streamlit Application Begins here!")
main_app.main()
the code of the main_app.py is :
import streamlit as st
from st_pages import Page, Section,show_pages, add_page_title
def main():
show_pages(
[
Page("main_app.py",name="主页",icon="🏠"),
Section(name="表格相关处理技术",icon="🏠"),
Page("menuPages/table_linked.py", "主从表格",icon="💪"),
Page("menuPages/second.py", "样例2",icon="💪"),
Section(name="项目相关",icon="🏠"),
Page("menuPages/xm.py", "项目",icon="💪"),
Page("menuPages/tax.py", "税率",icon="💪"),
# in_section=False用明确申明,该页不属于上面的菜单section子项目
Page("menuPages/test.py",name="最后页面",icon="🏠",in_section=False),
]
)
if name == 'main':
main()
pass
Is there any way we can get to know which user is logged in?
Hi maintainer,
As st.cache depreciated on streamlit, please update to other method
The users info are saved in _secret_auth_.json
. If you run streamlit app locally there will be no issue accessing that file. What about when you deploy it in streamlit cloud for example? Does that file really is save to a server disk?
I would like to save it to an external database. When the user tries to logged in, I would pull the data from database, check the user log in credential etc. How does streamlit_login_auth_ui
managed it?
BTW I make an app out of this package.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.