Skip to main content

Integration Casdoor with FastAPI

Project description

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,
    }

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastapi_casdoor_fix-0.1.12.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastapi_casdoor_fix-0.1.12-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file fastapi_casdoor_fix-0.1.12.tar.gz.

File metadata

  • Download URL: fastapi_casdoor_fix-0.1.12.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for fastapi_casdoor_fix-0.1.12.tar.gz
Algorithm Hash digest
SHA256 83d1e5d1962cde451a0716cacbf99f3acc00f5c3c240565f6c005e83f4e6eec9
MD5 f37e6c06d820e2ff078c6e0199818b0b
BLAKE2b-256 927d3695c5b67de2a3800754e3a399fd18d63add77e86b0d2310c0ffbda25b33

See more details on using hashes here.

Provenance

The following attestation bundles were made for fastapi_casdoor_fix-0.1.12.tar.gz:

Publisher: publish-to-test-pypi.yml on kdbanit/python-fastapi-casdoor

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fastapi_casdoor_fix-0.1.12-py3-none-any.whl.

File metadata

File hashes

Hashes for fastapi_casdoor_fix-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 66d109786a3cc57b01aee49f7c6b6713a7ee83dd37b92881cfec162d7fe7968e
MD5 bf6c0a2240a50e9eb01b13f2458de017
BLAKE2b-256 f4c8e84fcb4ed5884427118052564fd52c725f9f9b908a5d66ae26443010d064

See more details on using hashes here.

Provenance

The following attestation bundles were made for fastapi_casdoor_fix-0.1.12-py3-none-any.whl:

Publisher: publish-to-test-pypi.yml on kdbanit/python-fastapi-casdoor

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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