No project description provided
Project description
Fastbase
Role-based Access Contral (RBAC) via Firebase idtoken authententication using FastAPI and SQLModel.
Installation
pip install fastbase
or
poetry add fastbase
Instructions
Fastbase assumes a headless setup using a frontend such as React, Angular, etc.
- Authentication: Managed by Firebase Auth
- Authorization: Managed by Fastbase
Process:
- Authentication happens in the frontend (JS) using the official Firebase JS package. An
idtokenwill be generated if successful and attach this to yourAuthorizationheader. - Upon reaching the server the
idtokenis verified. - At first use, using the
/signinendpoint Fastbase checks if the user alread exists in the database. If user is new then a record is created using SQLModel.
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
fastbase-0.3.0.tar.gz
(6.8 kB
view details)
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 fastbase-0.3.0.tar.gz.
File metadata
- Download URL: fastbase-0.3.0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.6 Linux/5.15.0-89-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f60d8b083a7ff56b76fc646fc9a4c5dd3eaa533dd9baba35a919ff879f30439
|
|
| MD5 |
028742a996d4f890077c8e8d4f7490bc
|
|
| BLAKE2b-256 |
099a9a9fc9aecf7348b05575dbe9aa956e5a046bed0d9c3c24fd707b3ce5cd23
|
File details
Details for the file fastbase-0.3.0-py3-none-any.whl.
File metadata
- Download URL: fastbase-0.3.0-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.6 Linux/5.15.0-89-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6dbd627dcf69d6acf632a0b94b1fa63ab4c986cf16944c2218915a130ab66d4
|
|
| MD5 |
ee36cd932eb187f097076cd2b0b28ee1
|
|
| BLAKE2b-256 |
1a3689df3d3aa5584c33e167e39208c4fa1da0675f97e9f8056cbe4cf079c5a5
|