Repository navigation
feat(ios): sign in to a TablePro account through the shared core - #4492
Merged
Merged
Conversation
The iOS app links the core's iOS slices and the Mac's account adapter, reads ADR 0055's keys from managed app configuration, and reports the tablepro-ios client and the ios platform. The vendored /v2 document carries ios until cloud S0b's is vendored.
# Conflicts: # core/docs/decisions/0047-the-apple-apps-sign-in-through-the-core.md
# Conflicts: # ROADMAP.md
datlechin
enabled auto-merge (squash)
November 25, 2026 12:35
iOS passes its managed values to the core as AccountConfig.policy, hands later ones to apply_policy, and takes iCloud's standing from the core's provider rule, as the Mac does.
# Conflicts: # apple/TableProMobile/TableProMobile/Localizable.xcstrings # apple/TableProMobile/TableProMobile/Onboarding/FirstRunPlan.swift # scripts/ci/detect-changed-paths.sh
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
/v2document is tablepro-cloud0e8af822(cloud#56, S0b), which takesiosonPOST /v2/devices; on the SaaS an iPhone or iPad holds one of the 3 device slots.AppClient::IOS(clienttablepro-ios, platformios, the Mac'sapp.tablepro:/oauth/callbackredirect) andAppClientTag::Iosin the FFI. C# bindings regenerated.apple/scripts/build-core.shtakes slices (arm64,x86_64,both,ios,ios-simulator) and builds one XCFramework with each. The iOS slices are built at the iOS app's 18.0 floor and checked like the Mac's: deployment target and system SQLite (API_AVAILABLE(ios(...))).TableProFFIdeclares iOS 18.TableProFFIand compiles the Mac's account adapter fromTablePro/Core/Services/Account/Shared/:CoreAccountBackend,CoreAccountMapping,KeychainHostSecrets,WebAuthenticationSessionAuthenticatorand the account types. Left on the Mac:AccountError+CloudAPI,AccountProfile+CloudAPI,AccountCoreSetup.accountConfig(machine:).CoreAccountBackendtakes each app'sAccountConfig;KeychainHostSecretstakes each app'sAccountTokenKeychain; the authenticator takes either platform's anchor;featureAccess(code:);AccountDevice.isThisMacisisThisDevice;AccountCodes.systemNameand the development stack moved to the shared folder.account.jsonin Application Support, kept out of backups;os_versionwith the system name ("iOS 26.1", "iPadOS 26.1").ManagedAppConfigurationreadsAccountServerURL,AllowOtherAccountServers,PersonalSyncProvider,UsageDataAllowedandICloudSyncAllowedfromcom.apple.configuration.managed; a value of another type counts as absent and is logged. The raw values reach the core asAccountConfig.policy(feat(policy): apply the ADR 0055 managed policy keys on the Mac and in the core #4497'sManagedPolicyArg), so every app applies one rule.apply_policy, in order; the account then calls a server the values no longer allow no more until the next launch.personal_sync_choicesandsettled_sync_providerover Off and iCloud, as the Mac does:PersonalSyncProvidercan force iCloud or keep it off, andICloudSyncAllowed=falsetakes it away. A change stops or starts sync at once, an upload stops before its next request, and the switch locks with the organization's wording; new passwords stay device-only while iCloud is off.UsageDataAllowed=falsestops usage data and locks its switch.iossuite runs on core changes; iOS and Package Tests builds the Simulator slice; core.yml builds the iOS device slice.verify.sh iosbuilds the Simulator slice and keeps the slices the tree had.Left for a later lane, from the security pass:
ICloudSyncAllowed=falsestops an upload before its first request and before each retry the coordinator makes;CloudKitSyncEnginestill sends the rest of a split upload. The iOS engine moves into the core in I3, which checks the policy per request.Tests changed on purpose:
FakeAccountBackend.featureAccesstakes the feature code, andapplyPolicythe core'sManagedPolicyArg(AccountServicesTestscomparescoreArgument);isThisMacrenamed in the Mac account tests.test_detect_changed_paths.py: the core-link cases cover theiossuite.Screens, light and dark, rendered from the app's views in the iOS 27 Simulator:
Test plan
tablepro-account:an_iphone_signs_in_through_the_same_scheme_as_its_own_client_and_registers_as_ios(the authorize URL, the token exchange andPOST /v2/devicescarrytablepro-iosandios);each_app_signs_in_as_its_own_client_platform_and_redirect.tablepro-ffi:an_iphone_passes_its_client_and_the_device_id_it_keeps.TableProFFITests:anIPhoneSignsInAsTheIOSClientThroughTheSameScheme.TableProMobileTestson the Simulator slice:AccountCoreSignInTests(the core inside the iOS app signs in astablepro-ios; a managed server holds the account),AccountModelTests(new values reach the core in order),AccountDeviceIDTests,MobileAccountKeychainTests,ManagedAppConfigurationTests,AppStateManagedConfigurationTests, onboarding and first-run cases.TableProTests:AccountCoreSetupConfigTestsand the account and Team Library suites.build-core.sh arm64 ios ios-simulator: every slice passes the deployment target and system SQLite checks.tablepro-account193 tests, clippy ontablepro-accountandtablepro-ffi,build-core.sh arm64 ios-simulator, the C# bindings generated from that core equal to the committed ones, 127 iOS tests in the 12 suites this touches, and the Mac account, Team Library, managed policy and sync provider suites.