简体   繁体   English

如何保持像Dropbox这样的特权来注入Finder

[英]How to keep privilege like Dropbox to inject Finder

I can inject Finder to put a button on toolbar and add a custom context menu. 我可以注入Finder在工具栏上放置一个按钮并添加自定义上下文菜单。 But my app ask me to input password to do this. 但是我的应用要求我输入密码才能执行此操作。 How to keep privilege like dropbox, only need to input password one time no matter restart app or restart computer? 如何保持像投递箱这样的特权,无论重启应用或重启计算机,都只需要输入一次密码?

only need to input password one time 只需要输入一次密码

You'll want to look into the Keychain Services API. 您将要研究Keychain Services API。
They allow you to store user passwords and other authentication information in a secure and standard manner. 它们允许您以安全和标准的方式存储用户密码和其他身份验证信息。

It's a plain C API but there are also wrappers for Cocoa out there. 这是一个普通的C API,但也有可可包装器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM