Re: [Tracker] Discussing the API of libtracker-miner



2009/8/17 Adrien Bustany <madcat mymadcat com>:
<SNIP>
3. Credentials storage
Note : this might not belong to libtracker-miner... Discussion is open!
To connect to the webservice, you generally need a token or a
user/pass tuple. Sometimes, you also need to store additionnal data,
so a simple user/pass API is not enough. Again, things should be
hidden by an interface.
I currently use something like (vala syntax) :
string get_password (string token_name, out HashTable<string, string>?
user_data) throws GLib.Error;
void forget_password (string token_name);
void store_password (string token_name, string password,
HashTable<string, string>? user_data) throws GLib.Error;

Perhaps http://www.freedesktop.org/wiki/Specifications/secret-storage-spec
is what you want. It is Gnome/KDE agnostic spec at least. Development
seems good, but of course it is not something you can apply *now*.
According to the mail Stef Walter sent to desktop-devel he targets
Gnome 2.30.

-- 
Cheers,
Mikkel



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]