Use secrets service for cups auth_info
When a printer requires auth_info (e.g. a printer connected
over the samba protocol) it is now possible to save the
credentials necessary for printing if a secrets service
is available over dbus.
The auth_info is then stored / loaded from the default
collection of that secrets service.
If no such service is available the user is not shown
the option to remember the password and the behavior
remains the same as before.
https://bugzilla.gnome.org/show_bug.cgi?id=674264
This commit is contained in:
committed by
Marek Kasik
parent
d5dae5b5df
commit
382d68ff8e
@ -124,12 +124,14 @@ struct _GtkPrintBackendClass
|
||||
gpointer auth_info_default,
|
||||
gpointer auth_info_display,
|
||||
gpointer auth_info_visible,
|
||||
const gchar *prompt);
|
||||
const gchar *prompt,
|
||||
gboolean can_store_auth_info);
|
||||
|
||||
/* not a signal */
|
||||
void (*set_password) (GtkPrintBackend *backend,
|
||||
gchar **auth_info_required,
|
||||
gchar **auth_info);
|
||||
gchar **auth_info,
|
||||
gboolean store_auth_info);
|
||||
|
||||
/* Padding for future expansion */
|
||||
void (*_gtk_reserved1) (void);
|
||||
@ -162,7 +164,8 @@ void gtk_print_backend_destroy (GtkPrintBackend *pri
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
void gtk_print_backend_set_password (GtkPrintBackend *backend,
|
||||
gchar **auth_info_required,
|
||||
gchar **auth_info);
|
||||
gchar **auth_info,
|
||||
gboolean can_store_auth_info);
|
||||
|
||||
/* Backend-only functions for GtkPrintBackend */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user