Expand description
Reusable Trellis auth/session helpers for Rust clients and the CLI.
Structs§
- Admin
Login Outcome - Successful browser-login result after the admin user has been verified.
- Admin
Session State - Persisted admin session details for the CLI.
- Auth
Client - Thin typed client for Trellis auth/admin RPCs used by the CLI.
- Bound
Session - A successfully bound user session.
- Browser
Login Challenge - An in-progress browser login flow waiting for the auth callback.
- Start
Browser Login Opts - Options for starting a browser-based admin login flow.
Enums§
- Trellis
Auth Error - Errors returned by Trellis auth and admin-session helpers.
Functions§
- build_
auth_ login_ url - Build the Trellis
/auth/login/:providerURL for a contract-bearing client. - clear_
admin_ session - Remove the stored admin session and related local credential files.
- connect_
admin_ client_ async - Connect an authenticated admin client from the stored session state.
- generate_
session_ keypair - Generate a new base64url-encoded Ed25519 session seed and public key.
- load_
admin_ session - Load the current admin session from disk.
- persist_
renewed_ admin_ session - Persist a renewed binding token and sentinel credentials into the admin session state.
- save_
admin_ session - Persist an admin session to the CLI config directory.
- start_
browser_ login - Start the browser login flow and local callback listener.