Integration Casdoor with FastAPI
Project description
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,
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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 fastapi_casdoor-0.1.10-py3-none-any.whl.
File metadata
- Download URL: fastapi_casdoor-0.1.10-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
823db5262fd3d124f54d6fc585cf35f07a0efec9bf12e0f2eb47ed69c137313f
|
|
| MD5 |
3f4f345305cbf193d3814d861f8e4c8e
|
|
| BLAKE2b-256 |
6f9bfff877eac46d0c2d62c68a54b8098d2c2e70875f9c5274c15269b0b14060
|