fb-streamlit-auth
Simple component that implements Firebase authentication.
Example usage:
import streamlit as st
from fb_streamlit_auth import fb_streamlit_auth
st.write('''## Hello
- world
''')
user = fb_streamlit_auth(
"<apiKey>",
"<authDomain>",
"<databaseURL>",
"<projectId>",
"<storageBucket>",
"messagingSenderId",
"appId",
"measurementId"
)
st.write(user)
The implementation, right now, is really crude. The API is subject to change. The user object returned by fb_streamlit_auth is None if the user is not logged in.
When the user is logged in the object also contains the custom claims associated to the user. In this way the app can check for claims to block or allow access.
Inspiration
My main source of inspiration was the msal_streamlit_authentication library
Metadata
Release files for fb-streamlit-auth 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fb_streamlit_auth-0.0.2.tar.gz | 127.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fb_streamlit_auth-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 256.0 kB
Release files / fb_streamlit_auth-0.0.2.tar.gz
| Download URL | fb_streamlit_auth-0.0.2.tar.gz |
|---|---|
| Size | 127.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
260f58ddc8c18f0e90a7f2317b1dacc00c99bf7f6b2a607a33cecfc11e04c1a3
|
|
BLAKE2b-256 checksum How to use checksums |
e44b1ba41e304dbed9b175749540756d30567aa4b82e54cde083c1192f388882
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.1
|
Release files / fb_streamlit_auth-0.0.2-py3-none-any.whl
| Download URL | fb_streamlit_auth-0.0.2-py3-none-any.whl |
|---|---|
| Size | 128.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a6208c9057973111b4ab76dcc0c20cab76d30640649d4eab45988de65d4e46aa
|
|
BLAKE2b-256 checksum How to use checksums |
ffc2b37e6498b186dcf8f481735c3cd35c1b17035b37009479ee4428ac761cb3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.1
|