-
Notifications
You must be signed in to change notification settings - Fork 199
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
KeychainAttribute does not work as expected #236
Comments
This quick and dirty fix made it work for me on MacOS: Also, according to Apple [1], passing [1] Apple:
|
Hi and thanks for the issue! Since you have a patch, would you mind sending up a pull request for us to take a look at? |
I have drafted #237 to address this. Still need to do some testing in the example apps and hope to write some unit tests around this issue as well. |
Describe the bug
Specifying
.useDataProtectionKeychain
and/or.keychainAccessGroup("<group>")
when creating aKeychainStore
has no effect on the keychain item.To Reproduce
AuthSession
Expected behavior
.useDataProtectionKeychain
saves the item in the 'Local Items' keychain.keychainAccessGroup
allows members of that group access to the itemEnvironment
41aba100f28395ebe842cd66e5d371cdd46c6792
Additional context
I believe there's a bug in
KeychainAttribute.keyName
. It should not return the quoted constants but rather the constants itself. SokSecUseDataProtectionKeychain
instead of"kSecUseDataProtectionKeychain"
becauseKeychainWrapper
uses the return value as-is to assemble the query dictionary forSecItem(Add|Delete|CopyMatching)
hereThe text was updated successfully, but these errors were encountered: