Giter VIP home page Giter VIP logo

streamlit_login_auth_ui's People

Contributors

gaurisp10 avatar tonilopezortiz78 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

streamlit_login_auth_ui's Issues

@st.cache to @st.cache_data

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!

image

bug fixes

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?

Dependency issue: argon2 not found

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 recover the username?

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.

the menu has not been hidden

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:

Screenshot 2023-05-05 at 12 02 52 PM

The app is running on:

  • MacOS: M1 (Ventura)
  • Python 3.10
  • Streamlit 1.22

Python version

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!

pip install sreamlit-login-auth-ui fails with python >=3.9

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

Update PyPi version

Is it possible to update it on PyPi so that we can use the new Get_username function?
Thank you.

cannot support to st-pages

this is the st-pages url" ’https://pypi.org/project/st-pages/

i create a mutipage created by st-pages package.
but i fail .

  1. show error :The page that you have requested does not seem to exist. Running the app's main page.
    and i wish the logout button wll show on the mutipage's main page.
  2. i wish the login username and the logout button will show on main.py pages : How can i do it? thanks

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

Managing _secret_auth_.json

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.