No project description provided
Project description
Welcome to Auth0-Streamlit
The fastest way to provide comprehensive login inside Streamlit
Installation
pip install streamlit-auth0-component
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 orhttp://YOUR_DOMAIN/component/auth0_component.login_button/index.htmlif you're deploying - 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 assing through verification - Test with other providers, only Google tested
Deploy
Change version in setup.pycd auth0_component/frontend/ && npm install && npm run build && cd .. && cd .. && rm -rf dist/* && poetry buildtwine upload dist/*
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file streamlit_auth0_component_patch-0.1.9.tar.gz.
File metadata
- Download URL: streamlit_auth0_component_patch-0.1.9.tar.gz
- Upload date:
- Size: 115.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e9b12988dfa1c233fe077d11c9f5423e618952ef0cd3d0171be463560c0029e
|
|
| MD5 |
2c4e850b0a9c6df3e4b0670d78cb9464
|
|
| BLAKE2b-256 |
59facbf80add514edf0cc67538d52df7c70f93da61c15753d96c11ae95a9a02b
|
File details
Details for the file streamlit_auth0_component_patch-0.1.9-py3-none-any.whl.
File metadata
- Download URL: streamlit_auth0_component_patch-0.1.9-py3-none-any.whl
- Upload date:
- Size: 118.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d95588e166a157f96936221402dd75ed7bf6ae4f6cd03a8a3751dcabdadb1955
|
|
| MD5 |
464eaa4c111b6d05080555e68373f6fb
|
|
| BLAKE2b-256 |
a0212b93aae10026e1582f46e04fe51c9a8829dc447999b7afc2f59c04b7f2d9
|