origin-accounts 0.2.0

Account management for Origin: several accounts per connector, credentials kept out of the database.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Account management (ADR-0016).
//!
//! An account is one authenticated identity at one connector. A connector may have
//! several; every cache key, sync record and credential is scoped by `AccountId` from
//! the start, because retrofitting that later touches everything.
//!
//! The account list lives in [`origin_storage::Storage`]; the credentials live in the
//! OS credential store (ADR-0008). Deleting the database therefore loses the list of
//! connected accounts, not the credentials — and a resync restores it.

mod service;
mod store;

pub use service::AccountService;
pub use store::AccountStore;

/// Storage namespace holding account records.
pub const ACCOUNTS_NAMESPACE: &str = "origin.accounts";