st-peter-client/rust
Michael Netshipise 30876f17f2 verify_api_key in all three languages + Rust key-management wrappers — v0.2.2
The service-credential seam: VerifyApiKey returns the key's owning
service user + roles (same AuthenticationResponse shape), so consumers
build their Ctx identically to a session. Cached ~60s per key,
namespaced away from token cache entries. Rust additionally wraps
CreateApiKey/ListApiKeys/RevokeApiKey. Versioning note: client patch
releases may lead the server within a minor line when only exposing
existing server surface.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-10 22:46:54 +02:00
..
src verify_api_key in all three languages + Rust key-management wrappers — v0.2.2 2026-06-10 22:46:54 +02:00
Cargo.toml verify_api_key in all three languages + Rust key-management wrappers — v0.2.2 2026-06-10 22:46:54 +02:00
README.md first commit 2026-06-10 14:45:00 +02:00
build.rs Add admin surface (AuthAdminService) + scoped token verification — v0.2.1 2026-06-10 21:00:41 +02:00

README.md

st-peter-client (Rust)

Official Rust client for st-peter (aura-users). Stubs are generated at build time from ../proto/st-peter-auth.proto; the ergonomic [AuthClient] wrapper (token-verify cache, login/2FA/lookup) is layered on top, with the raw wire surface available under st_peter_client::authpb.

let auth = st_peter_client::AuthClient::connect("http://127.0.0.1:9091").await?;
let user = auth.verify_token(&token).await?; // cached ~60s

See the repo root README for versioning and the authentication-central / authorization-local design.