Closed OGmetamonkey closed 3 years ago
I also tried this using the "Team ID" from https://developer.apple.com/account/#/membership/ . Same result.
String userAccessGroupShared = "TEAMIDFROMLINK";
await user.setSettings(
appVerificationDisabledForTesting: true, userAccessGroup: userAccessGroupShared);
2021-07-06 16:32:17.795340-0400 Runner[843:79577] flutter: [firebase_auth/keychain-error] An error occurred when accessing the keychain. The @c NSLocalizedFailureReasonErrorKey field in the @c NSError.userInfo dictionary will contain more information about the error encountered 2021-07-06 16:32:17.796084-0400 Runner[843:79577] flutter: catch exception for valid link above 2021-07-06 16:32:17.796696-0400 Runner[843:79577] flutter: [firebase_auth/keychain-error] An error occurred when accessing the keychain. The @c NSLocalizedFailureReasonErrorKey field in the @c NSError.userInfo dictionary will contain more information about the error encountered 2021-07-06 16:32:17.797230-0400 Runner[843:79577] flutter: USER NULL: null
Hi @OGmetamonkey
Does this issue persist on the latest version of firebase_auth
? The version you are using is pretty outdated and there have been multiple improvements since then (such as increasing the underlying Firebase iOS SDK constraint).
Thank you
As it turns out the documentation just sent me down the wrong path. All I had to do was add the Google Firebase plist from my main target to my extension target.
I'll close this based on my previous comment.
Bug report
Describe the bug The description of the userAccessGroup keychain sharing feature (introduced in firebase_auth version 0.18.0) says: "Set the property to your team group ID or set to null to remove sharing capabilities." I have my extensions configured to share keychains and have tested keychain sharing successfully outside of flutter auth/firebase.
I used the Keychain Sharing - Keychain Groups attribute (as set in both targets in XCode config and included in both targets entitlements file) for the "team group ID" as shown below:
As stated, this works to share keychain across the app targets outside of firebase_auth. When attempting to set the userAccessGroup setting to the userAccessGroupShared value with the above firebase_auth code, I get this error:
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
I expected that firebase_auth would utilize the specified keychain group to save the firebase_auth token and my firebase_auth would be accessible on the extension target.
Flutter doctor
Run
flutter doctor
and paste the output below:Flutter dependencies
Run
flutter pub deps -- --style=compact
and paste the output below: