Repository navigation
feat(macos): sign in through the core, with a company server option - #4471
Merged
datlechin merged 15 commits intoNov 24, 2026
Merged
Conversation
datlechin
force-pushed
the
feat/macos-account-on-core
branch
from
November 24, 2026 06:22
c63e0a5 to
1623f24
Compare
…ead managed policy only when forced
…ver and no share links off tablepro.app
…from the cached payload
…earlier builds used
…port the local-stack probe
…keep an offline file's label while signed in
…d retry a stored key's exchange hourly
…rver, and keep a sign-in past the device limit
…ed key until its sign-in is remembered, and check a library's owner before it shows
…ord a refused sign-in, and wait for the restore without a timeout
…ign-in whose first refresh failed
…cked, and keep edits when the bearer cannot be renewed
datlechin
force-pushed
the
feat/macos-account-on-core
branch
from
November 24, 2026 08:05
6cf082c to
47f0942
Compare
This was referenced Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Stacked on #4470: merge after it. Docs: TableProApp/docs#283.
AccountService(core ADR 0047).CoreAccountBackendopens it at launch;AccountServicesadapts it for the app andFeatureAccesspublishes the core's per-feature gate.KeychainHostSecrets, in the Keychain items earlier builds used (com.TablePro.account.refreshToken, a company server's under its own key). No other secret goes to the core yet.Account/entitlement.jwt, so a signed-in Mac stays signed in with no device registration. A stored license key is exchanged once through the core, retried hourly while offline, recovered from the cached license payload when the key item is gone, and deleted only once the Keychain holds the new sign-in.AccountSession,OAuthTokenClient,EntitlementStore,EntitlementVerifier,DeviceRegistry,AccountConfiguration, and the old offline license (LegacyLicenseStore,LegacyLicensePayload,LicenseSignatureVerifier,license_public.pem).com.TablePro.policy.AccountServerURLandAllowOtherAccountServerscount only when a configuration profile forces them, andminimumSafeModeLevelnow does too. Use TablePro's Server Instead leaves a profile's default server.license_expired.AccountStatusInfo.offline_file, so a signed-in Mac that imported an offline file still shows it as one. C# bindings regenerated.build-core.shfails when it would bundle its own or call a function newer than macOS 13. CI and release build the core (prepare-build, per-arch release legs, both arches nightly);verify.shbuilds it when stale; themacosandreleasesuites watch the core.update-core-licenses.sh, checked incore.yml).CARGO_PROFILE_RELEASE_DEBUG_ASSERTIONS=true, since a release core refuses a development stack;TABLEPRO_API_URLstays an origin and the app adds/v2; a Debug run's development stack reads as tablepro.app.Test plan
CoreAccountMappingTests,KeychainHostSecretsTests,AccountCoreSetupTests,AccountServicesTests(adapter against a fake core, restore wait, hourly key retry, key kept when the Keychain refuses, license grace wake, shares pinned to tablepro.app),CompanyServerAddressTests,SharingMenuGroupTests, forced-value cases inManagedPolicyReaderTests, company-server cases inSignInModelTestsandAccountSettingsContentTests, an offline file imported while signed in inAccountSettingsModelTests, Team Librarylicense_expired, server change, restored company sign-in, another server's copy, a leftover file, a signed-out launch, a failed bearer, a queued publish and a confirmation across a switch, telemetry on a company server and after a late restore,routingWaitsForTheRestoredAccountinAppLaunchCoordinatorTests,an_offline_file_a_signed_in_machine_imported_says_soin the FFI,CompanyServerSignInUITests.ManagedPolicyReaderTests.readsSetValues(an unforced value is no longer policy); the detector tests that saidmacosskips the core;AccountSettingsContentTests,LicensePresentationTests,FeatureAccessTests,AccountSettingsModelTestsandTelemetryTestsbuild state the way the core publishes it;TelemetryFixture.startpublishes the restored account after telemetry starts, asAppDelegatedoes;MachineIdentityTestsloses itsAccountConfigurationcase.AccountSessionTests,EntitlementVerifierTests(andentitlement_vectors.json),LegacyLicenseStoreTests,AccountConfigurationTests,LicenseTests.TeamLibrarySyncTestsexisting cases unchanged.KeychainHostSecretsTestsreads a refresh token an earlier build wrote;AccountCoreSetupTestspinsAccount/entitlement.jwt; the adoption itself is the core's, tested there.nm -gU libtablepro_ffi.a | grep -c ' T _sqlite3_open_v2'prints 0;otool -Lon the app shows/usr/lib/libsqlite3.dylib.Screenshots