Skip to content

kdbanit/python-fastapi-casdoor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fastAPI Casdoor

Integration Casdoor with FastAPI

Installation

pip install fastapi-casdoor-fix

Usage

from typing import Annotated
from fastapi import FastAPI, Depends
from fastapi_casdoor.deps import get_current_user
from fastapi_casdoor.models import User

app = FastAPI()

@app.get("/")
async def root(user: Annotated[User, Depends(get_current_user)]):
    return {
        "user": user,
    }

About

Integration Casdoor with FastAPI

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Python 98.7%
  • Shell 1.3%