## soup-server-auth

soup-server-auth —

## Synopsis

    gboolean    (*SoupServerAuthCallbackFn)     (SoupServerAuthContext *auth_ctx,
                                                 SoupServerAuth *auth,
                                                 SoupMessage *msg,
                                                 gpointer data);
    void        soup_server_auth_context_challenge
                                                (SoupServerAuthContext *auth_ctx,
                                                 SoupMessage *msg,
                                                 gchar *header_name);
    enum        SoupAuthType;
    struct      SoupServerAuthBasic;
    enum        SoupDigestAlgorithm;
    struct      SoupServerAuthDigest;
    SoupServerAuth* soup_server_auth_new        (SoupServerAuthContext *auth_ctx,
                                                 const GSList *auth_hdrs,
                                                 SoupMessage *msg);
    void        soup_server_auth_free           (SoupServerAuth *auth);
    const gchar* soup_server_auth_get_user      (SoupServerAuth *auth);
    gboolean    soup_server_auth_check_passwd   (SoupServerAuth *auth,
                                                 gchar *passwd);

## Description

## Details

### SoupServerAuthCallbackFn ()

    gboolean    (*SoupServerAuthCallbackFn)     (SoupServerAuthContext *auth_ctx,
                                                 SoupServerAuth *auth,
                                                 SoupMessage *msg,
                                                 gpointer data);

`auth_ctx` : |
`auth` : |
`msg` : |
`data` : |
Returns : |

### soup_server_auth_context_challenge ()

    void        soup_server_auth_context_challenge
                                                (SoupServerAuthContext *auth_ctx,
                                                 SoupMessage *msg,
                                                 gchar *header_name);

`auth_ctx` : |
`msg` : |
`header_name` : |

### enum SoupAuthType

    typedef enum {
    	SOUP_AUTH_TYPE_BASIC = 1,
    	SOUP_AUTH_TYPE_DIGEST
    } SoupAuthType;

### struct SoupServerAuthBasic

    struct SoupServerAuthBasic {

    	SoupAuthType  type;
    	const gchar  *user;
    	const gchar  *passwd;
    };

### enum SoupDigestAlgorithm

    typedef enum {
    	SOUP_ALGORITHM_MD5      = 1 << 0,
    	SOUP_ALGORITHM_MD5_SESS = 1 << 1
    } SoupDigestAlgorithm;

### struct SoupServerAuthDigest

    struct SoupServerAuthDigest {

    	SoupAuthType          type;
    	SoupDigestAlgorithm   algorithm;
    	gboolean              integrity;
    	const gchar          *realm;
    	const gchar          *user;
    	const gchar          *nonce;
    	gint                  nonce_count;
    	const gchar          *cnonce;
    	const gchar          *digest_uri;
    	const gchar          *digest_response;
    	const gchar          *request_method;
    };

### soup_server_auth_new ()

    SoupServerAuth* soup_server_auth_new        (SoupServerAuthContext *auth_ctx,
                                                 const GSList *auth_hdrs,
                                                 SoupMessage *msg);

`auth_ctx` : |
`auth_hdrs` : |
`msg` : |
Returns : |

### soup_server_auth_free ()

    void        soup_server_auth_free           (SoupServerAuth *auth);

`auth` : |

### soup_server_auth_get_user ()

    const gchar* soup_server_auth_get_user      (SoupServerAuth *auth);

`auth` : |
Returns : |

### soup_server_auth_check_passwd ()

    gboolean    soup_server_auth_check_passwd   (SoupServerAuth *auth,
                                                 gchar *passwd);

`auth` : |
`passwd` : |
Returns : |