host-sso 0.3.9

SSO session manager — QR pairing lifecycle, sign request forwarding, session persistence
Documentation

host-sso — SSO session manager for Polkadot Host products.

Manages the QR-based pairing lifecycle between a host application and a mobile wallet (Polkadot App). Handles sign-request forwarding and session persistence across restarts.

Architecture

All I/O (transport, signing, storage, event delivery) is injected via the traits in [traits]. The crate has no direct I/O dependencies.

Usage

  1. Implement [traits::SsoTransport], provide a [host_wallet::HostSigner], [traits::SsoSessionStore], and [traits::SsoEventSink] for your platform.
  2. Construct a [manager::SsoManager] with the adapters and metadata URL.
  3. Call restore_session() on startup to resume a previous session.
  4. Call pair() to initiate a new QR-pairing flow.
  5. Call handle_pairing_result() once the pairing handshake completes.