ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #20713
Store username/password
Hi list,
I'm creating a QML app with the Ubuntu SDK IDE. This app uses
XMLHttpRequests to authenticate to an online service and then can get it's
data from there.
This all works fine, but I need to always type in the username and
password. Now what I want is to store this information so that it can be
read on application start.
How would I go about doing this?
I've found https://wiki.ubuntu.com/OnlineAccounts but that clearly states:
-----------------------------
The purpose of Online Accounts in Ubuntu is to simplify the overall
experience, by reducing your need to enter sign-in details for an online
service in multiple apps.
This time saving comes at a cost: the mental complexity of dealing with a
separate thing, “Online Accounts”. Therefore, Online Accounts should be
involved only where it is reasonably likely to save time. So it should not
be used to handle special-purpose accounts that are only ever used for one
app; that would make the overall experience more complex for no gain.
-----------------------------
Well, as you might have guessed, my app will be the only one to use the
account. Now what is the preferred way to store my account settings? I
guess it needs to be somewhat secure... Wouldn't want anyone to read it...
but then again, that might be step 2..
Thanks for any help!
Kind regards,
Rutger Hendriks
--
Verzonden via Dekko vanaf mijn Ubuntu-apparaat
Follow ups