Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/antonlydell/streamlit-passwordless-app
The streamlit-passwordless showcase app.
https://github.com/antonlydell/streamlit-passwordless-app
passkeys streamlit streamlit-component
Last synced: 19 days ago
JSON representation
The streamlit-passwordless showcase app.
- Host: GitHub
- URL: https://github.com/antonlydell/streamlit-passwordless-app
- Owner: antonlydell
- License: mit
- Created: 2024-05-01T14:43:31.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-01-02T21:21:01.000Z (about 1 month ago)
- Last Synced: 2025-01-02T21:30:52.623Z (about 1 month ago)
- Topics: passkeys, streamlit, streamlit-component
- Language: Python
- Homepage: https://passwordless.streamlit.app/
- Size: 53.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
streamlit-passwordless-app
==========================|Streamlit|
A Streamlit application to showcase the `streamlit-passwordless`_ library.
.. _streamlit-passwordless: https://github.com/antonlydell/streamlit-passwordless
Installation
------------Install the project to run it locally:
.. code-block:: bash
~ $ mkdir stp_app && cd stp_app
~/stp_app $ git clone https://github.com/antonlydell/streamlit-passwordless-app.git .
~/stp_app $ python -m venv .venv
~/stp_app $ source .venv/bin/activate
~/stp_app (.venv) $ python -m pip install -r requirements.txtOn Windows you should replace with ``source .venv/bin/activate`` with ``./.venv/bin/Activate.ps1``.
Create an account with `Bitwarden Passwordless.dev`_ if you do not already have one and then
create a local (``~/stp_app/.streamlit/secrets.toml``) or global (``~/.streamlit/secrets.toml``)
`Streamlit secrets`_ file. Paste the contents below into the file:.. _Bitwarden Passwordless.dev: https://admin.passwordless.dev/Account/Login
.. _Streamlit secrets: https://docs.streamlit.io/develop/api-reference/connections/secrets.toml.. code-block:: toml
[streamlit-passwordless]
STP_BWP_PUBLIC_KEY = ''
STP_BWP_PRIVATE_KEY = ''
STP_DB_URL = ''```` and ```` should be replaced by the public key and private key
of your Bitwarden Passwordless.dev account respectively. The *private key* is called *secret key*
in Bitwarden Passwordless.dev. Replace ```` with the `SQLAlchemy database URL`_ of the
streamlit-passwordless user database. Specifying ``STP_DB_URL`` is optional and if not specified
a SQLite database (*streamlit_passwordless.db*) located in the current working directory is used... _SQLAlchemy database URL : https://docs.sqlalchemy.org/en/20/core/engines.html#database-urls
Run the app with the command:
.. code-block:: bash
~/stp_app (.venv) $ python -m streamlit run main.py
You can now view your Streamlit app in your browser.
Local URL: http://localhost:8501
Open the url in your favorite web browser if it does not open automatically.
License
-------streamlit-passwordless-app is distributed under the `MIT-license`_.
.. _MIT-license: https://opensource.org/licenses/mit-license.php
.. |Streamlit| image:: https://static.streamlit.io/badges/streamlit_badge_black_white.svg
:alt: Streamlit Passwordless on Streamlit Community Cloud
:scale: 100%
:target: https://passwordless.streamlit.app