-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Keychain Access Groups #2770
Support Keychain Access Groups #2770
Conversation
Thank you for creating PR to support passing Keychain Groups. Since the configuration file is generated by using @aws-amplify/amplify-cli , adding
|
Digging deeper into the PR and the existing implementation, I found a scenario where we also need to consider how existing items that are there in the keychain can be updated to use access group that was passed in. |
legacyKeychainStoreFactory: { service in | ||
self.makeLegacyKeychainStore(service: service, accessGroup: accessGroup) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not be adding accessGroup
to the legacy keychain. This would cause migration to fail from V1 to V2.
@harsh62 thanks for looking into this PR. We have been using this branch in production for a few weeks now. I understand that the bar to be included in a popular public SDK is very high and this probably needs to address various different use cases that I am not familiar with and did not consider. Please feel free to take over and take it to the finish line. I'd kindly suggest to prioritize this internally since this feature is required to be able to safely share cognito credentials between the main app and app extensions. |
I am gonna close this PR as the team will be working on this feature with a different design. Will keep the issue #2508 open for more udpates. |
Issue #
#2508
Description
This change enables secure sharing of Cognito session between the main app and app extensions.
This is achieved through an optional
awsCognitoAuthPlugin
configuration parameter `KeychainAccessGroup:General Checklist
Given When Then
inline code documentation and are named accordinglytestThing_condition_expectation()
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.