User Authentication - Objective-C / Cocoa / Sandbox

First of all, please note that I am looking for a solution that works as part of the recommendations for a review of MAS and, in particular, for the application sandbox.

I would like to know if there is a way to authenticate the user before allowing them to make changes to sensitive preferences. For example, the System Preferences application does this using the lock icon: enter image description here

I suspect that system settings should do this because some preference files need root permissions that need to be changed.

In my case, I should not run any such "sudo-esque" operation, so I do not need escalation of privileges. All I want to do is make sure that the person who wants to change the settings of my application is actually a guy who owns a Mac or created a current Mac account (in short, he knows the password for the current user registered in the system).

Any ideas?

+3
source share
2 answers

There is no supported API for this, and even if you find a workaround, your application will most likely be rejected from the Mac App Store to request a password from the user.

, , . , . , , (, ), .

, " ", , , . , , . , , , , -, , .

- , , (. http://www.defenceindepth.net/2011/09/cracking-os-x-lion-passwords.html). , , root, .

, . API- , , . API-, .

Apple , API . , .

Apple API, , , , , . , API , , , API.

+2
+3

All Articles