mic-platform
Briques policy, contrôle et intégrations d'identité du framework MIC. Sommet du DAG
platform → data → core : dépend de mic-core ET mic-datastore.
Modules
| Module | Rôle |
|---|---|
mic.authz |
Autorisation : moteur in-memory, OPA, OpenFGA (appels API via httpx) |
mic.identity.keycloak |
Client OIDC Keycloak concret, sans dépendance FastAPI/Litestar |
mic.ratelimit |
Rate limiting (in-memory / Redis Lua) + RateLimitMiddleware |
Namespace PEP 420 (pas de mic/__init__.py).
Installation
pip install "mic-platform[keycloak,openfga,redis]"
Extras
| Extra | Tire |
|---|---|
opa |
mic-core[client] (httpx — appels HTTP vers l'agent OPA) |
openfga |
mic-core[client] (httpx — API OpenFGA ; pas le SDK officiel) |
keycloak |
mic-core[client] (httpx : discovery, authorization code + PKCE, refresh, logout) |
redis |
mic-datastore[redis] (backend Lua du rate limiter) |
ℹ️ L'adaptateur OpenFGA (
mic.authz.openfga) parle à l'API HTTP viahttpx, il n'utilise pasopenfga-sdk.
mic.identity.keycloak.KeycloakClient ne dépend d'aucun transport entrant :
les adaptateurs FastAPI, Litestar, WebSocket ou gRPC extraient les credentials,
puis appellent ce client et mic.auth.OidcTokenVerifier. Le client ne réimplémente
pas la validation JWT/JWKS et n'expose volontairement pas le password grant.
Versionnage
Brique volatile (OPA/OpenFGA bougent vite) — reste en 0.x. Contraindre avec
>=0.1,<1. Release : make release-pkg PKG=platform VERSION=x.y.z → tag
platform-vX.Y.Z (cf. ../../RELEASING.md).
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mic_platform-0.1.20.tar.gz.
File metadata
- Download URL: mic_platform-0.1.20.tar.gz
- Upload date:
- Size: 25.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c767960b9c0206f70377578fbdb974c967ba026d330adbc545732e65262b01ac
|
|
| MD5 |
4fc9982815f36ebed4818e3505a0d772
|
|
| BLAKE2b-256 |
e6957245ad2912b4509af7d39a422b2f63a5a88b2661bec2e80d812cece9274d
|
File details
Details for the file mic_platform-0.1.20-py3-none-any.whl.
File metadata
- Download URL: mic_platform-0.1.20-py3-none-any.whl
- Upload date:
- Size: 33.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea1c6d76bd3afc891d7e20dcdfe4d17d4dee83f0a4bf466821ab83b4a4486d88
|
|
| MD5 |
68eec6ea8a27df4577f4108d51bc29a1
|
|
| BLAKE2b-256 |
c758d6bad7549b435a8dca5c20c02d0e59c69e3f3596bc8ea6cd9ed81e039877
|