HostAuthenticator

fun interface HostAuthenticator

Decides whether one call may proceed. Return true to admit it.

Implementations must not throw: an authenticator that fails is treated as a refusal, because a thrown exception on this path would otherwise surface as a 500 and tell the caller more about the server than a 401 does.

Functions

Link copied to clipboard
abstract suspend fun authorize(call: ApplicationCall): Boolean