Soup.AuthDomainBasic

g GObject.Object GObject.Object Soup.AuthDomain Soup.AuthDomain GObject.Object->Soup.AuthDomain Soup.AuthDomainBasic Soup.AuthDomainBasic Soup.AuthDomain->Soup.AuthDomainBasic

Subclasses:

None

Methods

Inherited:

Soup.AuthDomain (10), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

set_auth_callback (callback, *user_data)

Virtual Methods

Inherited:

Soup.AuthDomain (3), GObject.Object (7)

Properties

Inherited:

Soup.AuthDomain (8)

Name

Type

Flags

Short Description

auth-callback

int

r/w

Password-checking callback

auth-data

int

r/w

Data to pass to authentication callback

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

Soup.AuthDomain

r

Class Details

class Soup.AuthDomainBasic(**kwargs)
Bases:

Soup.AuthDomain

Abstract:

No

Structure:

Soup.AuthDomainBasicClass

set_auth_callback(callback, *user_data)
Parameters:

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_CALLBACK and Soup.AUTH_DOMAIN_BASIC_AUTH_DATA properties, which can also be used to set the callback at construct time.

Property Details

Soup.AuthDomainBasic.props.auth_callback
Name:

auth-callback

Type:

int

Default Value:

None

Flags:

READABLE, WRITABLE

The Soup.AuthDomainBasicAuthCallback

Soup.AuthDomainBasic.props.auth_data
Name:

auth-data

Type:

int

Default Value:

None

Flags:

READABLE, WRITABLE

The data to pass to the Soup.AuthDomainBasicAuthCallback