Skip to main content

Crate trellis_auth

Crate trellis_auth 

Source
Expand description

Reusable Trellis auth/session helpers for Rust clients and the CLI.

Structs§

AdminLoginOutcome
Successful browser-login result after the admin user has been verified.
AdminSessionState
Persisted admin session details for the CLI.
AuthClient
Thin typed client for Trellis auth/admin RPCs used by the CLI.
BoundSession
A successfully bound user session.
BrowserLoginChallenge
An in-progress browser login flow waiting for the auth callback.
StartBrowserLoginOpts
Options for starting a browser-based admin login flow.

Enums§

TrellisAuthError
Errors returned by Trellis auth and admin-session helpers.

Functions§

build_auth_login_url
Build the Trellis /auth/login/:provider URL 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.

Type Aliases§

ApprovalEntryRecord
ApprovalScopeRecord
AuthenticatedUser
SentinelCredsRecord
ServiceListEntry