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
Close
Hashes for fastapi_casdoor-0.1.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 823db5262fd3d124f54d6fc585cf35f07a0efec9bf12e0f2eb47ed69c137313f |
|
MD5 | 3f4f345305cbf193d3814d861f8e4c8e |
|
BLAKE2b-256 | 6f9bfff877eac46d0c2d62c68a54b8098d2c2e70875f9c5274c15269b0b14060 |