Accessing online accounts with Sailfish Accounts
The Sailfish SDK includes Sailfish Accounts, a QML module for accessing accounts and performing single-sign-on with accounts which the user adds via the system settings application.
The Sailfish Accounts module is built on top of the Accounts&SSO framework described in detail at https://docs.accounts-sso.googlecode.com/git/libaccounts-qt/html/index.html. It provides some functionality which is not provided by the underlying library and also provides a more QML friendly API.
Using Sailfish Accounts
To use Sailfish Accounts, you must import the module as follows:
import Sailfish.Accounts 1.0
This will allow your application to use the types provided by Sailfish Accounts, including:
Please see the documentation of each of the types above for in-depth information on how to create application-specific credentials associated with an account and sign in to the online service using those credentials.
The Sailfish Accounts module also provides some UI elements which allow accounts to be selected for further use: