Can I create two factor login authentication to Streamlit apps and how?
- Password and face recognition for signup and login section
Can I create two factor login authentication to Streamlit apps and how?
Hi @People, welcome to the Streamlit community!
Whenever there is a question about “can I”, the answer is almost certainly “yes, with enough effort”. But if you mean does Streamlit have a built-in method for doing this, well, no. We’ve approached the design of Streamlit to allow users to get a site built fast, for those who may not have web development experience.
The great thing about Streamlit being built in Python, however, is that anything you can do in Python on the backend should be possible with Streamlit. I’m not an expert here, but I am aware of the PyOTP library. I could imagine a solution using that in combination with session state and/or some other backend API validation to make this work.
As always, if you end up figuring it out, please come back and let everyone know how you did it!
Best,
Randy
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.