Skip to main content

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

  1. Install this package and your chosen provider implementation.
  2. Configure your provider (e.g., Keycloak) in your FastAPI app.
  3. Inject the provider into the dependencies from this package.

License

LKSISL

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

lks_idprovider_fastapi-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

lks_idprovider_fastapi-0.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

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

Hashes for lks_idprovider_fastapi-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dcd65bc075f06dfeedfdf4a9e32879d2f2d0fe8c7f158b2c33a70172c7b4fd1d
MD5 739f3922c5ac4e8b995d91e9fde7240a
BLAKE2b-256 18bf86518e6f5bdbbb0a014ff00fb423e908cd46fe851440c856a40fdd0ece3b

See more details on using hashes here.

File details

Details for the file lks_idprovider_fastapi-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for lks_idprovider_fastapi-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 04aa73cb4e6f941a057b9867062a0b81f1535c43b98b4fe83182874d9a38e86f
MD5 273e70b1c23f03872078b29a0a95f2af
BLAKE2b-256 6a0c5a6a79612a34b81e83e620567ef3bcde0f2be036875a83b52703d2edbc47

See more details on using hashes here.

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