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 Distribution

fastapi_casdoor_fix-0.1.11.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.11-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fastapi_casdoor_fix-0.1.11.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.11.tar.gz
Algorithm Hash digest
SHA256 1b9b1bec8b8181cc446db3856ddb1fd11b7c727c83b78f0f455b49cf54c03e26
MD5 ea78f2094c23890056904d1479f51261
BLAKE2b-256 e19496dbfa00a5ed2786c7c161c89cca3e900a98b7963ac02d4abcae6f5eb7c4

See more details on using hashes here.

Provenance

The following attestation bundles were made for fastapi_casdoor_fix-0.1.11.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.11-py3-none-any.whl.

File metadata

File hashes

Hashes for fastapi_casdoor_fix-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 80172d257e3489cbdda459a3404e56d335ec6192676cc1a094f85367c7a70613
MD5 1dd0d20334284577fad6dc744bb30564
BLAKE2b-256 26f02ffd628a7535d059c282d7daceccdaec5c83932f1e06d7fb7912ff8b1914

See more details on using hashes here.

Provenance

The following attestation bundles were made for fastapi_casdoor_fix-0.1.11-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