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.3a0.tar.gz (54.8 kB view details)

Uploaded Source

Built Distribution

fastapi_keycloak-0.3a0-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for fastapi_keycloak-0.3a0.tar.gz
Algorithm Hash digest
SHA256 e265dde31858f74efcb61732e9e1fcd9ff60f20bbca90911c32e9a25c6b17991
MD5 6662590f8beb4da0eccd63f40b668611
BLAKE2b-256 c4d576c87ac5c4aa22483d3bfd3b1485d8f664cb93c6b39a761fde073a0b3d90

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastapi_keycloak-0.3a0-py3-none-any.whl
Algorithm Hash digest
SHA256 8b83f25e2fa91321aff87998b1396a15a18be5c3f6fc45b44675612887589219
MD5 198936886cad4f8e6e14ac001317fce5
BLAKE2b-256 6e1a44e0d6eb62599e9540cce0d7d7948100773895d046ec09c6d82c1b618ec8

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