Re: Authorization panel
Re: Authorization panel
- Subject: Re: Authorization panel
- From: Finlay Dobbie <email@hidden>
- Date: Tue, 18 Oct 2005 14:31:48 +0100
On 06/10/05, Chad Armstrong <email@hidden> wrote:
> Is there a way in Cocoa to bring up an Authorization panel, like the
> one that appears if a user tries something (say copy a file they
> don't have writes to), so a user CAN modify a file if they know the
> administrator username and password. I've looked around, and either
> there doesn't seem to be an easy solution, or I'm just not asking the
> write question yet.
The solution is not "easy" because there are several potential
problems from a security point of view that you need to consider.
Take a look at the following sample code from Apple:
<http://developer.apple.com/samplecode/MoreAuthSample/MoreAuthSample.html>
And the Authorization Services conceptual documentation:
<http://developer.apple.com/documentation/Security/Conceptual/authorization_concepts/index.html>
These are not "Cocoa" per se, but they are C API in the Security
framework which work perfectly fine from a Cocoa application.
-- Finlay
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden