fastAPI Casdoor
Integration Casdoor with FastAPI
Installation
pip install fastapi-casdoor
Usage
from typing import Annotated, Depends
from fastapi import FastAPI
from fastapi_casdoor.deps import get_current_user
from fastapi_casdoor.models import User
@app.get("/")
async def root(user: Annotated[User, Depends(get_current_user)]):
return {
"user": user,
}
Metadata
Release files for fastapi-casdoor 0.1.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fastapi_casdoor-0.1.10-py3-none-any.whl | Python 3 | none | any | Details |
Release files / fastapi_casdoor-0.1.10-py3-none-any.whl
| Download URL | fastapi_casdoor-0.1.10-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
823db5262fd3d124f54d6fc585cf35f07a0efec9bf12e0f2eb47ed69c137313f
|
|
BLAKE2b-256 checksum How to use checksums |
6f9bfff877eac46d0c2d62c68a54b8098d2c2e70875f9c5274c15269b0b14060
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.8
|