AuthDomain
Object Hierarchy:
Description:
All known sub-classes:
Namespace: Soup
Package: libsoup-2.4
Content:
Properties:
- public AuthDomainFilter filter { get; set; }
The AuthDomainFilter for the domain
- public void* filter_data { get; set; }
- public AuthDomainGenericAuthCallback generic_auth_callback { get; set; }
The AuthDomainGenericAuthCallback for the domain
- public void* generic_auth_data { get; set; }
- public bool proxy { get; construct; }
- public string realm { get; construct; }
Creation methods:
- protected AuthDomain ()
Methods:
- public virtual string accepts (Message msg, string header)
- public string? accepts_authorization (Message msg)
Checks if
msg
contains appropriate authorization for this to accept it. - public void add_path (string path)
Adds
path
to this, such that requests underpath
on this's server will require authentication (unless overridden by remove_path or set_filter). - public virtual string challenge (Message msg)
Adds a "WWW-Authenticate" or "Proxy-Authenticate" header to
msg
, requesting that the client authenticate, and setsmsg
's status accordingly. - public virtual bool check_password (Message msg, string username, string password)
Checks if
msg
authenticates to this viausername
andpassword
. - public bool covers (Message msg)
Checks if this requires
msg
to be authenticated (according to its paths and filter function). - public unowned string get_realm ()
Gets the realm name associated with this
- public void remove_path (string path)
Removes
path
from this, such that requests underpath
on this's server will NOT require authentication. - public void set_filter (owned AuthDomainFilter filter)
Adds
filter
as an authentication filter to this. - public void set_generic_auth_callback (owned AuthDomainGenericAuthCallback auth_callback)
Sets
auth_callback
as an authentication-handling callback for this. - public bool try_generic_auth_callback (Message msg, string username)
Inherited Members:
All known members inherited from class GLib.Object