From: Yvon T. <yvo...@gm...> - 2007-08-10 13:08:51
|
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 ? -- yvon |
From: <jea...@gm...> - 2007-08-12 01:25:06
|
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? 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. cheers, jean-pierre |
From: Yvon T. <yvo...@gm...> - 2007-08-12 08:13:41
|
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" ??? thanks for your reply, best ! Yvon ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > -- yvon |
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 |
From: Yvon T. <yvo...@gm...> - 2007-08-13 08:32:54
|
2007/8/12, jea...@gm... <jea...@gm...>: > > BridgeSupport - sorry :0) > OK, it was obvious ))) 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 > then i might even use a python framework from RubyCocoa ? best, Yvon -- yvon |
From: <jea...@gm...> - 2007-08-13 17:59:36
|
On 8/13/07, Yvon Thoraval <yvo...@gm...> wrote: > > > > 2007/8/12, jea...@gm... <jea...@gm...>: > > > > > 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 > > > > > then i might even use a python framework from RubyCocoa ? > nah, it just points to a third party objc framework that wraps keychain access - you could take the framework, build BS files for it, embed it in your application and then off you go. i think the article is specific to using it in python but it could be used in ruby too no? cheers, jean-pierre |
From: Yvon T. <yvo...@gm...> - 2007-08-14 08:51:31
|
2007/8/13, jea...@gm... <jea...@gm...>: > > > > > then i might even use a python framework from RubyCocoa ? > > > > nah, it just points to a third party objc framework that wraps keychain > access - you could take the framework, build BS files for it, embed it in > your application and then off you go. i think the article is specific to > using it in python but it could be used in ruby too no? > OK, i'll see that this afternoon... ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > -- yvon |