GNOME Bugzilla – Bug 512591
Port authentication code to gio
Last modified: 2008-05-24 12:00:46 UTC
See add_auth_to_uri() Unfortunately, there's no equivalent functions to gnome_vfs_uri_set_user_name, etc.
Apparently the way to do it is broadly: uri = g_file_new_for_uri (mrl); g_file_mount_enclosing_volume (uri, G_MOUNT_MOUNT_NONE, TODO, NULL, NULL, NULL); return g_file_get_path (uri); Where TODO would be an instance of (probably) our own subclass of GMountOperation which calls gnome-keyring and can also present a password dialogue. See http://svn.gnome.org/viewvc/eel/trunk/eel/eel-mount-operation.c?view=markup and http://bugzilla.gnome.org/show_bug.cgi?id=522245.
I killed that code.