-
Notifications
You must be signed in to change notification settings - Fork 891
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
enable sharing of the KeyChain across access groups | iOS Extension (Share Extension) #1106
Comments
@undefobj Want to get your thoughts on this, might be a good utility. |
Marking this as a feature request pending discussion with team. @undefobj @muellerfr |
I would like to like one more PR #1155 that adds ability to configure credentials sharing. |
+1 for this feature |
+1 as well. I commented on PR #1155 mentioned above. Trying to find any workaround that doesn't result in a poor experience for the user. Ideas anyone? |
Hi there what the status on that feature request ? We would need it to build a share extension. Anyone has a good workaround ? |
Hi @vpusher , |
I went a similar direction but send the refresh token so the user doesn’t need to open the app once per hour. Probably not the best way, but it works |
Hi @abemusic, |
Hi @rohandubal, any updates about this feature? |
We're tracking this in Amplify Swift here: aws-amplify/amplify-swift#2508 |
Hello,
I want to check is there a way we can getSession() in iOS Extension (Share Extension). As I need to access session token for my api calls. It is again loading Login View Controller while it should give same Identity. Like how I can enable sharing of the KeyChain across access groups.
I looked into AWSCognitoIdentityUser.m and in this function
-(AWSTask<AWSCognitoIdentityUserSession*> *) getSession and AWSUICKeyChainStore and where keychain is initialized.
We actually need to initialize keychain with custom Service and AccessGroup so that it can be accessed from extension.
Like currently it is like this in AWSCognitoIdentityUserPool
_keychain = [AWSUICKeyChainStore keyChainStoreWithService:[NSString stringWithFormat:@"%@.%@", [NSBundle mainBundle].bundleIdentifier, [AWSCognitoIdentityUserPool class]]];
while we want something like this in AWSCognitoIdentityUserPool where we can provide group and service
_keychain = [AWSUICKeyChainStore keyChainStoreWithService:@"OUR OWN SERVICE STRING" accessGroup:@"OUR OWN SHARE ACCESS GROUP"];
https://github.com/aws/aws-sdk-ios/blob/master/AWSCognitoIdentityProvider/AWSCognitoIdentityUserPool.m#L168
Originally opened by @qaisershehzad as sample issue#301.
The text was updated successfully, but these errors were encountered: