6.4 SoupAuthDomainGenericAuthCallback

Callback: SoupAuthDomainGenericAuthCallback

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

The prototype for a AuthDomain generic authentication callback.

The callback should look up the user’s password, call AuthDomain.check_password, and use the return value from that method as its own return value.

In general, for security reasons, it is preferable to use the auth-domain-specific auth callbacks (eg, AuthDomainBasicAuthCallback and AuthDomainDigestAuthCallback), because they don’t require keeping a cleartext password database. Most users will use the same password for many different sites, meaning if any site with a cleartext password database is compromised, accounts on other servers might be compromised as well. For many of the cases where Server is used, this is not really relevant, but it may still be worth considering.

domain

Passed: a <SoupAuthDomain>.

a <SoupAuthDomain>

msg

Passed: a <SoupServerMessage>.

the ServerMessage being authenticated

username

Passed: a string.

the username from msg

%return

Returned: a boolean.

#t if msg is authenticated, #f if not.

user-data

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

the data passed to AuthDomain.set_generic_auth_callback