What is keycloak_admin_aio?
This package provides an asynchronous api wrapper for the keycloak admin api.
The main dependencies are:
Links:
How to install?
pip install keycloak-admin-aio
How to use it?
import asyncio
from keycloak_admin_aio import KeycloakAdmin
server_url = "http://localhost:8080/auth"
client_id = "admin-cli" # used by default
realm = "master" # used by default
With administrator username and password:
keycloak_admin_args = {
"server_url": server_url,
"client_id": client_id,
"realm": realm,
"username": "admin",
"password": "password123",
}
async def main():
async with KeycloakAdmin.with_password(**keycloak_admin_args) as kc:
users = await kc.users.get(email="@google")
await asyncio.gather(
*[
kc.users.by_id(user.id).execute_actions_email.send_email(
["UPDATE_PASSWORD"]
)
for user in users
]
)
asyncio.run(main())
With client credentials:
keycloak_admin_args = {
"realm": realm,
"server_url": server_url,
"client_id": client_id,
"client_secret": "the_secret",
}
async def main():
async with KeycloakAdmin.with_client_credentials(**keycloak_admin_args) as kc:
...
asyncio.run(main())
License
© Copyright 2023, Nicklas Sedlock
Metadata
Release files for keycloak-admin-aio 1.3.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| keycloak_admin_aio-1.3.7.tar.gz | 33.5 kB | Without provenance | Details for keycloak_admin_aio-1.3.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| keycloak_admin_aio-1.3.7-py3-none-any.whl | Python 3 | none | any | Details for keycloak_admin_aio-1.3.7-py3-none-any.whl |
Total release size: 88.2 kB
Release files / keycloak_admin_aio-1.3.7.tar.gz
| Download URL | keycloak_admin_aio-1.3.7.tar.gz |
|---|---|
| Size | 33.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
25ee258a09e1db3ae9ff1a2b383357e96964bb2636704904338a89cae9ab99a5
|
|
BLAKE2b-256 checksum How to use checksums |
9b30014674089928e94a9a2f5bf4a188b7e379327a8ffc941be08ebeb24e52ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.4.24
|
Release files / keycloak_admin_aio-1.3.7-py3-none-any.whl
| Download URL | keycloak_admin_aio-1.3.7-py3-none-any.whl |
|---|---|
| Size | 54.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c089d525fd52ed176427498927064ba838bfaa2c25e788b6a7028e52b350646e
|
|
BLAKE2b-256 checksum How to use checksums |
b6a823023b2cc52d9459b47f2ff1b2b1971cf7e097868b110b0c259e087152ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.4.24
|
Security for keycloak-admin-aio 1.3.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.