ubl-axum-kit
Shared Axum middleware for UBL services.
Features
- JWT verification via
ubl-auth - PoP (Proof-of-Possession) verification via
ubl-id - Rate limiting (per tenant/actor)
- Tenant extraction from path
- Actor context (did, scope)
- ULID trace ID generation
- Standard API response types
Usage
use ubl_axum_kit as kit;
// Extract actor from headers
let actor = actor_from_headers.await?;
// Rate limiting
if !store.limiter.allow
// Standard responses
ApiOk
ApiError
ApiNotFound
Part of UBL Ecosystem
- ubl-id — DIDs, CIDs, Wallets
- json_atomic — Canonical JSON
- logline-core — Audit atoms
License
MIT OR Apache-2.0