standard-callbacks

Name

standard-callbacks -- 

Synopsis



#define     GNOME_VFS_HOOKNAME_BASIC_AUTH
#define     GNOME_VFS_HOOKNAME_HTTP_PROXY_AUTH
typedef     GnomeVFSCallbackSimpleAuthIn;
typedef     GnomeVFSCallbackSimpleAuthOut;

Description

Details

GNOME_VFS_HOOKNAME_BASIC_AUTH

#define GNOME_VFS_HOOKNAME_BASIC_AUTH "simple-authn"


GNOME_VFS_HOOKNAME_HTTP_PROXY_AUTH

#define GNOME_VFS_HOOKNAME_HTTP_PROXY_AUTH "http:proxy-authn"


GnomeVFSCallbackSimpleAuthIn

typedef struct {
	char *uri;		/* Full URI of operation */
	char *realm;		/* for HTTP auth, NULL for others */
	gboolean previous_authn_failed;
				/* TRUE if there were credentials specified
				 * for this request, but they resulted in
				 * an authorization error. 
				 * ("you gave me the wrong pw!")
				 * 
				 * FALSE if there were no credentials specified
				 * but they are required to continue
				 * 
				 */
	enum {
		AuthTypeBasic,	/* Password will be transmitted unencrypted */
		AuthTypeDigest	/* Digest is transferred, not plaintext credentials */		
	} auth_type;
} GnomeVFSCallbackSimpleAuthIn;


GnomeVFSCallbackSimpleAuthOut

typedef struct {
	char *username;		/* will be freed by g_free,
				 * NULL indicates no auth should be provided;
				 * if the request requires authn, the operation
				 * will fail with a GNOME_VFS_ERROR_ACCESS_DENIED
				 * code
				 */
	char *password;		/* will be freed by g_free */
} GnomeVFSCallbackSimpleAuthOut;