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:
Class Details¶
- class Soup.AuthDomainBasic(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Server-side “Basic” authentication.
Soup.AuthDomainBasic
handles the server side of HTTP “Basic” (ie, cleartext password) authentication.- 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 [property`AuthDomainBasic`:py:data::auth-callback<Soup.AuthDomainBasic.props.auth_callback>] and [property`AuthDomainBasic`:py:data::auth-data<Soup.AuthDomainBasic.props.auth_data>] properties, which can also be used to set the callback at construct time.
Property Details¶
- Soup.AuthDomainBasic.props.auth_callback¶
-
The [callback`AuthDomainBasicAuthCallback`].