Companion
object Companion
Properties
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
fun frontedByProxy(reason: String, rateLimit: HostAuthentication.RateLimit? = null): HostAuthentication
Declares that something in front of this server already authenticates callers.