DigestAuth

fun ClientFilters.DigestAuth(credentials: Credentials, nonceGenerator: NonceGenerator = SECURE_NONCE, digestMode: DigestMode = Standard): Filter(source)

Responds to Digest authentication challenges (RFC 7616).

Note: if the server challenges with qop=auth-int, the request entity body is read fully into memory to compute the digest.


fun ClientFilters.DigestAuth(credentials: () -> Credentials, nonceGenerator: NonceGenerator, digestMode: DigestMode = Standard): Filter(source)


fun ServerFilters.DigestAuth(realm: String, passwordLookup: (String) -> String?, qop: List<Qop> = listOf(Auth), digestMode: DigestMode = Standard, nonceGenerator: NonceGenerator, nonceVerifier: NonceVerifier, algorithm: DigestAlgorithm, usernameKey: RequestLens<String>? = null): Filter(source)

Protects routes with Digest authentication (RFC 7616).

Note: when Qop.AuthInt is negotiated, the request entity body is read fully into memory to verify the digest