Skip to main content

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


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

fastapi_casdoor-0.1.10-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file fastapi_casdoor-0.1.10-py3-none-any.whl.

File metadata

File hashes

Hashes for fastapi_casdoor-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 823db5262fd3d124f54d6fc585cf35f07a0efec9bf12e0f2eb47ed69c137313f
MD5 3f4f345305cbf193d3814d861f8e4c8e
BLAKE2b-256 6f9bfff877eac46d0c2d62c68a54b8098d2c2e70875f9c5274c15269b0b14060

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page