GObject ╰── SoupAuthManager
SoupAuthManager implements SoupSessionFeature.
A SoupAuthManager is added to the session by default, and normally
you don't need to worry about it at all. However, if you want to
disable HTTP authentication, you can remove the feature from the
soup_session_remove_feature_by_type(), or disable it on
individual requests with
void soup_auth_manager_use_auth (
is to be used under
, as though a
WWW-Authenticate header had been received at that URI. This can be
used to "preload"
's auth cache, to avoid an extra HTTP
round trip in the case where you know ahead of time that a 401
response will be returned.
This is only useful for authentication types where the initial Authorization header does not depend on any additional information from the server. (Eg, Basic or NTLM, but not Digest.)
#define SOUP_TYPE_AUTH_MANAGER (soup_auth_manager_get_type ())
(Although this type has only been publicly visible since libsoup
2.42, it has always existed in the background, and you can use
to get its GType in earlier releases.)
void user_function (SoupAuthManager *manager, SoupMessage *msg, SoupAuth *auth, gboolean retrying, gpointer user_data)
Emitted when the manager requires the application to provide authentication credentials.
Flags: Run First