api

http4k / org.http4k.filter / ServerFilters / BasicAuth

BasicAuth

object BasicAuth

Simple Basic Auth credential checking.

Functions

Name Summary
invoke Credentials validation functionoperator fun invoke(realm: String, authorize: (Credentials) -> Boolean): <ERROR CLASS>
Static username/password validationoperator fun invoke(realm: String, user: String, password: String): <ERROR CLASS>
Static credentials validationoperator fun invoke(realm: String, credentials: Credentials): <ERROR CLASS>
Population of a RequestContext with custom principal objectoperator fun <T> invoke(realm: String, key: RequestContextLens<T>, lookup: (Credentials) -> T?): <ERROR CLASS>