Welcome to Auth0-Streamlit :forked:
The fastest way to provide comprehensive login inside Streamlit
Updated to latest auth0 sdk
This is a fork of the original onradbez/streamlit-auth0@c5e5666. Thanks to the original author for the great work!
Installation
pip install streamlit-auth0-ts
Setup
- Register for Auth0
- Create a Single Page Application and navigate to the "settings" tab
- set your callback url's to
http://localhost:8501/component/auth0_component.login_button/index.htmlassuming you're running on localhost orhttps://YOUR_DOMAIN/component/auth0_component.login_button/index.htmlif you're deploying - Set your Web Origin to
http://localhost:8501orhttp://YOUR_DOMAIN - Copy
client_idanddomainfrom this page - Follow example below
An example
On Auth0 website start a "Single Page Web Application" and copy your client-id / domain (of form xxxx.us.auth0.com) into code below.
from auth0_component import login_button
import streamlit as st
clientId = "...."
domain = "...."
user_info = login_button(clientId, domain = domain)
st.write(user_info)
user_info will now contain your user's information
Todo
- Pass all info through JWT, at the moment the
subfield is the only field passing through verification - Test with other providers, only Google tested
Deploy
Change version in setup.pycd auth0_component/frontend/ && npm run build && cd .. && cd .. && rm -rf dist/* && python setup.py sdist bdist_wheeltwine upload dist/*
Metadata
Release files for streamlit-auth0-ts 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| streamlit-auth0-ts-0.2.1.tar.gz | 66.0 kB | Without provenance | Details for streamlit-auth0-ts-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| streamlit_auth0_ts-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for streamlit_auth0_ts-0.2.1-py3-none-any.whl |
Total release size: 131.6 kB
Release files / streamlit-auth0-ts-0.2.1.tar.gz
| Download URL | streamlit-auth0-ts-0.2.1.tar.gz |
|---|---|
| Size | 66.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a16adaba1197effd5dc379626f59d7a7656ee4a4ad9a4d0f811d97520fde920a
|
|
BLAKE2b-256 checksum How to use checksums |
50650aa45abb4e03bd54919b9cb33e707a3b4af368d673801f973532fdf25e0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.13
|
Release files / streamlit_auth0_ts-0.2.1-py3-none-any.whl
| Download URL | streamlit_auth0_ts-0.2.1-py3-none-any.whl |
|---|---|
| Size | 65.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d122227730fc69ddd978ee16b637a4b2b19210d21d51d6b0d7ec754f03e2290a
|
|
BLAKE2b-256 checksum How to use checksums |
8fee05f835254f8a10b6fc647f850926e89ab46b496b559b6a7916ec47585e8d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.13
|
Security for streamlit-auth0-ts 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.