SAMKeychain icon indicating copy to clipboard operation
SAMKeychain copied to clipboard

Query fetchAll filters based on accessibilityType

Open jcavar opened this issue 8 years ago • 3 comments

It seems that fetchAll filters (that is my understanding) based on global accessibilityType. This doesn't seem intuitive to me so I was wondering what is the reason for this behaviour?

I can see it was introduced here:

https://github.com/soffes/SAMKeychain/commit/e43c99bb59c87a176cb5459dbb963e2d6537bcdb

cc @lufthansa747

jcavar avatar Jan 11 '18 18:01 jcavar

Sorry not in that commit, that is for save, but in this one https://github.com/soffes/SAMKeychain/commit/a7ea45c86a1e7f75599ad9a541fbab84bb111873

jcavar avatar Jan 11 '18 18:01 jcavar

Ok I understand background now, but my problem is that library we are using add keychain items with it's own accessibilityType. So i simply want to remove all keychain items but fetchAlldoesn't allow that because it filters them out.

I feel like SAMKeychainQueryshould get this parameter instead of using one that is globally defined.

jcavar avatar Jan 11 '18 19:01 jcavar

Related: https://github.com/soffes/SAMKeychain/pull/184/, https://github.com/soffes/SAMKeychain/pull/77

jcavar avatar Jan 12 '18 09:01 jcavar