Re: [Tracker] Discussing the API of libtracker-miner
- From: Mikkel Kamstrup Erlandsen <mikkel kamstrup gmail com>
- To: Adrien Bustany <madcat mymadcat com>
- Cc: Tracker mailing list <tracker-list gnome org>
- Subject: Re: [Tracker] Discussing the API of libtracker-miner
- Date: Tue, 18 Aug 2009 09:25:51 +0200
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]