AuthDomainDigestAuthCallback

typealias AuthDomainDigestAuthCallback = (domain: AuthDomainDigest, msg: ServerMessage, username: String) -> String?

Callback used by #SoupAuthDomainDigest for authentication purposes.

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

  • param domain the domain

  • param msg the message being authenticated

  • param username the username provided by the client

  • return the encoded password, or null if