st-peter-client/rust/README.md

15 lines
565 B
Markdown

# 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`.
```rust
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.