ktor-auth / io.ktor.auth / DigestAuthenticationProvider / Configuration / digestProvider

digestProvider

fun digestProvider(digest: suspend (userName: String, realm: String) -> ByteArray?): Unit

Configures digest provider function that should fetch or compute message digest for the specified userName and realm. A message digest is usually computed based on user name (login), realm and password concatenated with colon character ':'. For example "$userName:$realm:$password".