Soup.AuthDomainBasic¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
- Inherited:
 
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w  | 
Password-checking callback  | 
||
r/w  | 
Data to pass to authentication callback  | 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent  | 
r  | 
Class Details¶
- class Soup.AuthDomainBasic(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
- set_auth_callback(callback, *user_data)¶
 - Parameters:
 callback (
Soup.AuthDomainBasicAuthCallback) – the callback
Sets the callback that self will use to authenticate incoming requests. For each request containing authorization, self will invoke the callback, and then either accept or reject the request based on callback's return value.
You can also set the auth callback by setting the
Soup.AUTH_DOMAIN_BASIC_AUTH_CALLBACKandSoup.AUTH_DOMAIN_BASIC_AUTH_DATAproperties, which can also be used to set the callback at construct time.
Property Details¶
- Soup.AuthDomainBasic.props.auth_callback¶