Sailfish OS
  • Info
  • User Experience
  • Cases
  • Community
  • Developers
  • Contact
  • Get Sailfish OS
Select Page

Sailfish Accounts

API Documentation
  • API Documentation
  • Libsailfishapp
  • Sailfish Silica
    • Documentation
    • Icon Reference
  • Sailfish Components
    • Sailfish Accounts
    • Sailfish Bluetooth
    • Sailfish Contacts
    • Sailfish Crypto
    • Sailfish Gallery
    • Sailfish Media
    • Sailfish Pickers
    • Sailfish Secrets
    • Sailfish Share
    • Sailfish Telephony
    • Sailfish Webview
    • Amber Web Authorization
    • Amber MPRIS
  • Nemo QML Plugins
    • Configuration
    • Contacts
    • D-Bus
    • Keepalive
    • Notifications
    • Thumbnailer
  • Sailfish Middleware
    • MDM Framework
    • MDM Policy Framework
    • User Manager Daemon

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:

  • Account
  • SignInParameters
  • AccountModel
  • Service
  • ServiceType
  • Provider
  • ProviderModel
  • AccountManager

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:

  • AccountProviderPicker
  • AccountProviderPickerDialog
  • AccountsListView
  • Legal
  • Contact Us
  • Jollyboys Ltd © 2024

  • Facebook
  • Twitter
  • Mastodon
  • YouTube
  • LinkedIn