Skip to main content

No project description provided

Project description

Welcome to Auth0-Streamlit

The fastest way to provide comprehensive login inside Streamlit

Example of Streamlit-Auth0|635x380

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.html assuming you're running on localhost or http://YOUR_DOMAIN/component/auth0_component.login_button/index.html if you're deploying
  • Copy client_id and domain from 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 sub field is the only field assing through verification
  • Test with other providers, only Google tested

Deploy

  • Change version in setup.py
  • cd auth0_component/frontend/ && npm install && npm run build && cd .. && cd .. && rm -rf dist/* && poetry build
  • twine 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

streamlit_auth0_component_patch-0.1.9.tar.gz (115.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

streamlit_auth0_component_patch-0.1.9-py3-none-any.whl (118.1 kB view details)

Uploaded Python 3

File details

Details for the file streamlit_auth0_component_patch-0.1.9.tar.gz.

File metadata

File hashes

Hashes for streamlit_auth0_component_patch-0.1.9.tar.gz
Algorithm Hash digest
SHA256 2e9b12988dfa1c233fe077d11c9f5423e618952ef0cd3d0171be463560c0029e
MD5 2c4e850b0a9c6df3e4b0670d78cb9464
BLAKE2b-256 59facbf80add514edf0cc67538d52df7c70f93da61c15753d96c11ae95a9a02b

See more details on using hashes here.

File details

Details for the file streamlit_auth0_component_patch-0.1.9-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_auth0_component_patch-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 d95588e166a157f96936221402dd75ed7bf6ae4f6cd03a8a3751dcabdadb1955
MD5 464eaa4c111b6d05080555e68373f6fb
BLAKE2b-256 a0212b93aae10026e1582f46e04fe51c9a8829dc447999b7afc2f59c04b7f2d9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page