login_sync


Description:


[ Version ( deprecated = true , deprecated_since = "1.34" , since = "1.0" ) ]
public AuthData login_sync (string username, string password, string? otp, Cancellable? cancellable = null) throws Error

Warning: login_sync is deprecated since 1.34.

This call used to contact a D-Bus service to perform snapd authentication using Polkit.

Note:

This now just creates a Client and does the call directly.

Parameters:

username

username to log in with.

password

password to log in with.

otp

response to one-time password challenge.

cancellable

a Cancellable or null.

Returns:

a AuthData or null on error.


Namespace: Snapd
Package: snapd-glib