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.8.tar.gz (23.2 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.8-py3-none-any.whl (24.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for streamlit_auth0_component_patch-0.1.8.tar.gz
Algorithm Hash digest
SHA256 ea873ddbf7282080517fc5ff2b1829cb46c1f1a9b016accc9adc6f94d16a6304
MD5 d872d0f8b498648ba366e32cd071ba3a
BLAKE2b-256 9031e83b16cc2e23c30a562402cd106d9450d08f26c550790016060f747d609d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for streamlit_auth0_component_patch-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 290ab3103b58ce1b807921d182472299653eee80171d72143368751225f39194
MD5 faf849c7253fe139149a17148a0b78de
BLAKE2b-256 1cb088acce26c23d74708a286f07970122830b48e3606539eb5cb22dd08120bb

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