6.2 SoupAuthDomainDigestAuthCallback

Callback: SoupAuthDomainDigestAuthCallback

A procedure given for it is called as (procedure domain msg username) ⇒ %return.

Callback used by AuthDomainDigest for authentication purposes.

The application should look up username in its password database, and return the corresponding encoded password (see AuthDomainDigest.encode_password.

domain

Passed: a <SoupAuthDomainDigest>.

the domain

msg

Passed: a <SoupServerMessage>.

the message being authenticated

username

Passed: a string.

the username provided by the client

%return

Returned: a string, or #f.

the encoded password, or #f if username is not a valid user. domain will free the password when it is done with it.

user-data

Not passed: it is the user data that guile-gi supplied.

the data passed to AuthDomainDigest.set_auth_callback