1.5 <SoupAuthDomainBasic>

Class: <SoupAuthDomainBasic>

It derives from <SoupAuthDomain>.

Server-side "Basic" authentication.

AuthDomainBasic handles the server side of HTTP "Basic" (ie, cleartext password) authentication.

Properties

Property: auth-domain-basic:auth-callback self

The AuthDomainBasicAuthCallback.

Its value is a foreign pointer (or, to set it, a bytevector).

Set it with (set! (auth-domain-basic:auth-callback self) value).

Property: auth-domain-basic:auth-data self

The data to pass to the AuthDomainBasicAuthCallback.

Its value is a foreign pointer (or, to set it, a bytevector).

Set it with (set! (auth-domain-basic:auth-data self) value).

Procedures

Method: auth-domain-basic:set-auth-callback self callback
Method: set-auth-callback self 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 AuthDomainBasic:auth-callback and AuthDomainBasic:auth-data properties, which can also be used to set the callback at construct time.

self

Passed: a <SoupAuthDomainBasic>.

the domain

callback

Passed: a procedure.

the callback

See SoupAuthDomainBasicAuthCallback for how it is called.

user-data

Not passed: guile-gi supplies it.

data to pass to auth-callback

dnotify

Not passed: guile-gi supplies it.

destroy notifier to free user-data when self is destroyed

See GDestroyNotify for how it is called.