如何以编程方式允许我的应用程序访问KeyChain? [英] How to programmatically allow access to the KeyChain for my application?

查看:61
本文介绍了如何以编程方式允许我的应用程序访问KeyChain?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

需要避免出现确认对话框.

Need to avoid the conformation dialog.

推荐答案

该对话框是钥匙串的安全功能.因为它存储敏感的用户信息,所以OS采取的立场是,用户应始终可以选择阻止使用此信息,以便用户可以信任自己在不知情的情况下未被使用.

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.

因此,没有办法阻止显示安全对话框.如果您代码签名,则可以使用户的生活更轻松.当您更新已签名的应用程序应用程序时,Mac OS X将识别出它是同一应用程序,并且如果他们决定始终允许访问其凭据,则不会再次提示您的用户.

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.

这篇关于如何以编程方式允许我的应用程序访问KeyChain?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆