get_accounts_sync


Description:

[ Version ( since = "3.54" ) ]
public Object? get_accounts_sync (Cancellable? cancellable = null) throws Error

Synchronously calls getAccounts D-Bus method on the Microsoft OAuth2 broker service and returns the result as a Object.

The Object contains the accounts that are currently registered at the broker, whereby the "accounts" node provides a Array of account entries. Note, that the availability of the types and entries needs to be checked by the caller before accessing them. The accounts entries can be inspected e.g. for the "username" and "homeAccountId" fields. Then, one entry needs to be selected and passed as-is to acquire_prt_sso_cookie_sync.

Parameters:

this

an MsOapxbc

cancellable

a Cancellable

Returns:

the accounts, or null on error