No project description provided
Project description
Fastbase
Role-based Access Contral (RBAC) via Firebase idtoken
authententication using FastAPI and SQLModel.
Installation
pip install fastbase/home/enchance/Dev/venv/fastbase-_XKMLCSM-py3.11/bin/python
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
idtoken
will be generated if successful and attach this to yourAuthorization
header. - Upon reaching the server the
idtoken
is verified. - At first use, using the
/signin
endpoint 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.2.1.tar.gz
(6.3 kB
view hashes)