SimpleLoginRepository signs in with SimpleLogin in the browser (OidcBrowser: the app's scheme on Android, iOS and macOS, the app's port on the loopback on Linux and Windows, D9), then makes the account's keys and signs someone new up, opens an account's keys with the password, gives an account of before its first keys, or links a new SimpleLogin account in place of a lost one with the recovery phrase (D7), which opens the keys on the device first: a phrase that doesn't fit sends no proof, and no password is asked after. An anonymous person adding SimpleLogin keeps the keys their device holds. Nothing is the device's until `enter`. SimpleLoginGateway calls halkyon_base's `simpleLogin` and `keys` endpoints (ServerpodSimpleLoginGateway), with a fake for tests, as does FakeOidcBrowser. The calls made on clients of their own (signed out, or as a session not yet the device's) move from the password gateway into BaseCalls, which both share. Fixes BaseProtocol, the client of halkyon_base alone, which didn't read halkyon_oidc's classes: every refusal of SimpleLogin's sign-in on a signed-out call would have reached the app as a failure. OidcBrowser keeps its loopback private, so that a fake can implement it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
20 lines
942 B
Dart
20 lines
942 B
Dart
/// Fakes of halkyon_app's boundaries, and a frame and dependencies built on
|
|
/// them, for an app's tests and this package's own: nothing here reaches a
|
|
/// server, the system's secure storage or the file system.
|
|
library;
|
|
|
|
export 'src/testing/fake_account_crypto.dart';
|
|
export 'src/testing/fake_auth_gateway.dart';
|
|
export 'src/testing/fake_content_cipher.dart';
|
|
export 'src/testing/fake_instance_checker.dart';
|
|
export 'src/testing/fake_oidc_browser.dart';
|
|
export 'src/testing/fake_password_gateway.dart';
|
|
export 'src/testing/fake_screen_guard.dart';
|
|
export 'src/testing/fake_simplelogin_gateway.dart';
|
|
export 'src/testing/memory_account_key_store.dart';
|
|
export 'src/testing/memory_file_saver.dart';
|
|
export 'src/testing/memory_instance_store.dart';
|
|
export 'src/testing/memory_pending_changes_store.dart';
|
|
export 'src/testing/memory_sign_in_addresses.dart';
|
|
export 'src/testing/memory_signed_out_mark.dart';
|
|
export 'src/testing/test_app.dart';
|