validate

fun validate(body: suspend RoutingContext.(DigestCredential) -> P?)(source)

Sets a validation function for DigestCredential.

Return a principal of type P when authentication succeeds, or null when the verified credentials should not be accepted.

Report a problem

Parameters

body

validation function called with the current routing context after Digest credentials are verified.