| Top |  |  |  |  | 
| SnapdAuthData * | snapd_login_sync () | 
| void | snapd_login_async () | 
| SnapdAuthData * | snapd_login_finish () | 
SnapdAuthData * snapd_login_sync (const gchar *username,const gchar *password,const gchar *otp,GCancellable *cancellable,GError **error);
snapd_login_sync has been deprecated since version 1.34 and should not be used in newly-written code.
This call used to contact a D-Bus service to perform snapd authentication using Polkit. This now just creates a SnapdClient and does the call directly.
| username | username to log in with. | |
| password | password to log in with. | |
| otp | response to one-time password challenge. | [allow-none] | 
| cancellable | a GCancellable or  | [allow-none] | 
| error | GError location to store the error occurring, or  | [allow-none] | 
Since: 1.0
void snapd_login_async (const gchar *username,const gchar *password,const gchar *otp,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
snapd_login_async has been deprecated since version 1.34 and should not be used in newly-written code.
Asynchronously get authorization to install/remove snaps.
See snapd_login_sync() for more information.
| username | username to log in with. | |
| password | password to log in with. | |
| otp | response to one-time password challenge. | [allow-none] | 
| cancellable | a GCancellable or  | [allow-none] | 
| callback | a GAsyncReadyCallback to call when the request is satisfied. | [scope async] | 
| user_data | the data to pass to callback function. | [closure] | 
Since: 1.0
SnapdAuthData * snapd_login_finish (GAsyncResult *result,GError **error);
snapd_login_finish has been deprecated since version 1.34 and should not be used in newly-written code.
Complete login started with snapd_login_async().
See snapd_login_sync() for more information.
| result | a GAsyncResult. | |
| error | GError location to store the error occurring, or  | [allow-none] | 
Since: 1.0