mana-swift-core/Sources/ManaCore/Auth
Till JS 573c93c104 fix(auth): ManaSharedKeychainGroup mit explizitem Team-ID-Prefix
Bug: Sec-Framework gibt -34018 (errSecMissingEntitlement) beim
ersten Keychain-Write — auf iPhone UND Mac, in werdrobe + nutriphi
+ vermutlich allen 12 Apps mit der heutigen Migration.

Root-Cause: Apple's `Security.framework` macht einen exakten
String-Match zwischen `kSecAttrAccessGroup` (was Swift übergibt)
und dem `keychain-access-groups`-Entitlement des Bundles (das
`$(AppIdentifierPrefix)` zur Build-Zeit auf den Team-Prefix
expandiert).

- Bundle-Entitlement: "QP3GLU8PH3.ev.mana.session" (mit Prefix)
- Swift-Code: "ev.mana.session" (ohne Prefix)
- → no match → -34018

Vor meiner Migration hatten die Apps explizit "QP3GLU8PH3.
ev.mana.<app>" als String (mit Prefix), beobachtbar im alten
herbatrium/wordeck/nutriphi-AppConfig. Mein Migrations-Skript hat
das Prefix wegrationalisiert ohne zu prüfen.

Fix: `ManaSharedKeychainGroup` = "QP3GLU8PH3.ev.mana.session"
hardcoded. Plus `ManaSharedKeychainGroupSuffix` = "ev.mana.session"
für Konstantanbedarf in Entitlement-Files (wo
$(AppIdentifierPrefix) zur Build-Zeit vorgestellt wird).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-18 22:09:45 +02:00
..
AuthClient+Account.swift v1.5.0 — getProfile() + ProfileInfo 2026-05-14 01:06:50 +02:00
AuthClient.swift v1.3.0 — 2FA-Login-Challenge 2026-05-14 00:20:05 +02:00
AuthError.swift v1.2.0 — Guest-Mode + Refresh-Resilience 2026-05-13 22:16:08 +02:00
JWT.swift v1.0.0 — initiale Extraktion aus memoro-native 2026-05-12 19:13:31 +02:00
KeychainStore.swift fix(keychain): Migration-Fallback bei accessGroup-Wechsel (v1.5.1) 2026-05-17 18:19:43 +02:00
ManaAppConfig.swift feat(core): ManaAppLog + appGroup/logSubsystem in ManaAppConfig (v1.7.0) 2026-05-17 22:23:03 +02:00
SharedKeychainGroup.swift fix(auth): ManaSharedKeychainGroup mit explizitem Team-ID-Prefix 2026-05-18 22:09:45 +02:00