Provider-agnostic FastAPI integration for lks-idprovider API protocols.
Project description
lks-idprovider-fastapi
Provider-agnostic FastAPI integration for lks-idprovider API protocols.
This package provides reusable FastAPI dependencies, decorators, and middleware for REST API security, based on the lks-idprovider API protocols. It is not tied to any specific provider implementation (e.g., Keycloak) and can be used with any compatible backend.
Features
- Bearer token security scheme for OpenAPI
- AuthContext dependency for user/client authentication
- Role-based and route protection dependencies
- Easy integration with any provider implementing the API protocols
Usage
- Install this package and your chosen provider implementation.
- Configure your provider (e.g., Keycloak) in your FastAPI app.
- Inject the provider into the dependencies from this package.
License
LKSISL
Project details
Release history Release notifications | RSS feed
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 lks_idprovider_fastapi-0.1.0.tar.gz.
File metadata
- Download URL: lks_idprovider_fastapi-0.1.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.12.6 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dcd65bc075f06dfeedfdf4a9e32879d2f2d0fe8c7f158b2c33a70172c7b4fd1d
|
|
| MD5 |
739f3922c5ac4e8b995d91e9fde7240a
|
|
| BLAKE2b-256 |
18bf86518e6f5bdbbb0a014ff00fb423e908cd46fe851440c856a40fdd0ece3b
|
File details
Details for the file lks_idprovider_fastapi-0.1.0-py3-none-any.whl.
File metadata
- Download URL: lks_idprovider_fastapi-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.12.6 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04aa73cb4e6f941a057b9867062a0b81f1535c43b98b4fe83182874d9a38e86f
|
|
| MD5 |
273e70b1c23f03872078b29a0a95f2af
|
|
| BLAKE2b-256 |
6a0c5a6a79612a34b81e83e620567ef3bcde0f2be036875a83b52703d2edbc47
|