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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fastapi_casdoor_fix-0.1.14.tar.gz.
File metadata
- Download URL: fastapi_casdoor_fix-0.1.14.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e48a6712d1552fd6963d9deb9aeed707746e11216f2b405698c3b7c753d1d71a
|
|
| MD5 |
a8d9fd207a1599f5ada98706cde3be89
|
|
| BLAKE2b-256 |
f7397d8b33d63c86d152d77f438672153c12372faf8a4485dcc63641fafdf252
|
Provenance
The following attestation bundles were made for fastapi_casdoor_fix-0.1.14.tar.gz:
Publisher:
publish-to-test-pypi.yml on kdbanit/python-fastapi-casdoor
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fastapi_casdoor_fix-0.1.14.tar.gz -
Subject digest:
e48a6712d1552fd6963d9deb9aeed707746e11216f2b405698c3b7c753d1d71a - Sigstore transparency entry: 186661329
- Sigstore integration time:
-
Permalink:
kdbanit/python-fastapi-casdoor@6d6ae9964eb8a7e8dde97c8c8660189f850aed40 -
Branch / Tag:
refs/tags/v0.1.14 - Owner: https://github.com/kdbanit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-test-pypi.yml@6d6ae9964eb8a7e8dde97c8c8660189f850aed40 -
Trigger Event:
push
-
Statement type:
File details
Details for the file fastapi_casdoor_fix-0.1.14-py3-none-any.whl.
File metadata
- Download URL: fastapi_casdoor_fix-0.1.14-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
858d769ca163174a0b8c7027050215fa063bc611b5381fb54dd3670f45c32166
|
|
| MD5 |
bf08ea637fa2014b3b5aad37430048d5
|
|
| BLAKE2b-256 |
62a454d5430f60a2002ac50d9c040c668b1390b8d6995cd1946516c918d31f91
|
Provenance
The following attestation bundles were made for fastapi_casdoor_fix-0.1.14-py3-none-any.whl:
Publisher:
publish-to-test-pypi.yml on kdbanit/python-fastapi-casdoor
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fastapi_casdoor_fix-0.1.14-py3-none-any.whl -
Subject digest:
858d769ca163174a0b8c7027050215fa063bc611b5381fb54dd3670f45c32166 - Sigstore transparency entry: 186661331
- Sigstore integration time:
-
Permalink:
kdbanit/python-fastapi-casdoor@6d6ae9964eb8a7e8dde97c8c8660189f850aed40 -
Branch / Tag:
refs/tags/v0.1.14 - Owner: https://github.com/kdbanit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-test-pypi.yml@6d6ae9964eb8a7e8dde97c8c8660189f850aed40 -
Trigger Event:
push
-
Statement type: