Companion

object Companion

Properties

Link copied to clipboard
val ALL: Set<HttpMethod>

Every method, for a server whose reads are also privileged.

Link copied to clipboard
val MUTATING: Set<HttpMethod>

Methods that change state. Reads are not gated by default.

Functions

Link copied to clipboard
fun bearerToken(token: String, protect: Set<HttpMethod> = MUTATING, rateLimit: HostAuthentication.RateLimit? = null): HostAuthentication

Constant-time bearer token comparison.

Link copied to clipboard
fun custom(authenticator: HostAuthenticator, protect: Set<HttpMethod> = MUTATING, rateLimit: HostAuthentication.RateLimit? = null): HostAuthentication

Any host-supplied check: mTLS subject, JWT, an allow-list, a delegated authorizer.

Link copied to clipboard

Declares that something in front of this server already authenticates callers.