From: <jea...@gm...> - 2007-08-12 17:09:39
|
On 8/12/07, Yvon Thoraval <yvo...@gm...> wrote: > > > > 2007/8/12, jea...@gm... <jea...@gm...>: > > > > On 8/10/07, Yvon Thoraval < yvo...@gm...> wrote: > > > > > i need to do a user authentification within a small RubyCocoa app. > > > > > > i'd like to save the password in a prefs file (yaml for ex) > > > > > > someone had experience with that little thing ? > > > > > > why not use the keychain / authentication framework instead of saving > > the password in a textfile? > > > > > seems to be very much complicated ??? > i'll see that point too. > > assuming the proper frameworks are exposed via BS, i'm sure there are > > keychain/authentication examples on developer.apple.com but you'd of > > course need to make the usual conversion to ruby. > > > > > what do you called "BS" ??? > BridgeSupport - sorry :0) depending if you need to temporarily authenticate the user for admin access or keychain, you would use different tools. this might be of help http://developer.apple.com/documentation/Security/Conceptual/SecureCodingGuide/Articles/SecuritySvcs.html and maybe even this (you could generate bridge support files, embed them in the framework and embed the framework in your app): http://bdash.net.nz/blog/2004/08/30/example-code-mac-os-x-keychain-access-from-python/ cheers, jean-pierre |