Skip to main content

Keycloak API Client for integrating authentication and authorization with FastAPI

Project description

FastAPI Keycloak Integration

CodeFactor codecov

Welcome to fastapi-keycloak. This projects goal is to ease the integration of Keycloak (OpenID Connect) with Python, especially FastAPI. FastAPI is not necessary but is encouraged due to specific features. Currently, this package supports only the password and the authorization_code. However, the get_current_user() method accepts any JWT that was signed using Keycloak´s private key.

Docs

Docs are available at https://fastapi-keycloak.code-specialist.com/.

TLDR

FastAPI Keycloak enables you to do the following things without writing a single line of additional code:

  • Verify identities and roles of users with Keycloak
  • Get a list of available identity providers
  • Create/read/delete users
  • Create/read/delete roles
  • Assign/remove roles from users
  • Implement the password or the authorization_code flow (login/callback/logout)

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_keycloak-0.1a0.tar.gz (52.5 kB view details)

Uploaded Source

Built Distribution

fastapi_keycloak-0.1a0-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file fastapi_keycloak-0.1a0.tar.gz.

File metadata

  • Download URL: fastapi_keycloak-0.1a0.tar.gz
  • Upload date:
  • Size: 52.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.26.0

File hashes

Hashes for fastapi_keycloak-0.1a0.tar.gz
Algorithm Hash digest
SHA256 fb5091fd9210e6e0293e07c17475e35ef9b51e2bcc64ed97fad6a556857e7fb1
MD5 de8e8f4874614a87ea5efd58937e0137
BLAKE2b-256 59ac6e2408746875801ba7d13e153af135fda733d6efb52ba9c54a0af1d351b6

See more details on using hashes here.

File details

Details for the file fastapi_keycloak-0.1a0-py3-none-any.whl.

File metadata

File hashes

Hashes for fastapi_keycloak-0.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 966334237ee2a7e9a42c35fe60614ff660628816e1d029c0ec71dcb29ff3c4c3
MD5 6801f61bdc5891fc59fb3ad11e97be5b
BLAKE2b-256 5510cb2671616a0122aa45e460064568d60e0213b63957f3a9cd05a525104f5b

See more details on using hashes here.

Supported by

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