The macOS app I'm working on accesses keychain items created by other apps—git remote credentials, likely entered in the Terminal or some other git client.
When calling SecItemCopyMatching()
, the user is prompted twice in a row:
- AppName wants to use your confidential information stored in "host.org" in your keychain.
- AppName wants to access key "host.org" in your keychain.
The user needs to enter their login password for each of the two prompts for the access to succeed.
Can I consolidate the two prompts into one? The experience with two alerts is somewhat confusing and tedious, compared to what it could be—especially since there is no way of displaying a usage description string in the window, to reassure and provide context.