How to programmatically allow access to the KeyChain for my application?

ⅰ亾dé卋堺 提交于 2021-01-28 05:46:46

问题


Need to avoid the conformation dialog.


回答1:


The dialog box a security feature of the keychain. Because it stores sensitive user information, the OS takes the position that the user should always have the option to prevent the use of this information so that the user can trust they're not being used without their knowledge.

So no, there's no way to prevent the security dialog box from being shown. You can make your user's life easier if you code sign your application. When you update a signed app app, Mac OS X will recognize that it's the same app and won't prompt your user again if they've decided to always allow access to their credentials.



来源:https://stackoverflow.com/questions/3063126/how-to-programmatically-allow-access-to-the-keychain-for-my-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!