Skip to main content

Client for Keycloak Api (mostly users and impersonation)

Project description

Python Keycloak Client

Usage

from keycloak_api_client import KeycloakApiClient

keycloak_api_client = KeycloakApiClient(...)
read_keycloak_user = keycloak_api_client.get_keycloak_user_by_email('johndoe@example.com')

Test

$ tox

Development

$ pip install -e .

Changelog

v0.9.0

  • Added delete_user method.

v0.8.1

  • Clear admin_user_access_token before using token-exchange feature.

v0.8.0

  • Allow to define starting client_id / client_secret when using token-exchange feature

v0.7.1

  • Change client_id value in get_user_tokens

v0.7.0

  • Added methods search_clients_by_client_id and delete_client
  • Added KeycloakClient dataclass

v0.6.0

  • Added methods create_client and create_mapper_for_client

v0.5.0

  • Added method send_verification_email

v0.4.0

  • Added method reset_password

v0.3.0

  • Added method count_users

v0.2.2

  • Added limit and offset params in KeycloakApiClient.search_users() to control paging

v0.2.1

  • Fixed StopIteration when downloading user by email in case email partially matches found users but not exact match exact email

v0.2.0

  • Method get_keycloak_user was replaced by get_keycloak_user_by_id and get_keycloak_user_by_email

v0.1.1

  • Fixed typo

v0.1.0

  • Initial release

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

python-keycloak-api-client-0.9.0.tar.gz (53.5 kB view hashes)

Uploaded Source

Built Distribution

python_keycloak_api_client-0.9.0-py2.py3-none-any.whl (7.6 kB view hashes)

Uploaded Python 2 Python 3

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