Package-level declarations

Types

Link copied to clipboard

Configuration for the basicAuth strategy factory (HTTP Basic, RFC 7617).

Link copied to clipboard

Implements HTTP Basic authentication (RFC 7617).

Link copied to clipboard

An UnauthorizedHandler that includes a WWW-Authenticate: Basic challenge (RFC 7617) on 401 responses.

Link copied to clipboard
data class BasicCredentials(val username: String, val password: String)

The username/password pair extracted from an incoming request's Basic credentials.

Link copied to clipboard

Locates BasicCredentials within an incoming request.

Link copied to clipboard
data class BasicUserDetails @JvmOverloads constructor(val identity: Identity, val encodedPassword: String, val roles: Set<RouteRole> = emptySet())

Lookup result for HTTP Basic authentication: the caller's identity, the encodedPassword used to verify it, and the roles granted on success.

Link copied to clipboard
fun interface PasswordEncoder

Compares a raw password from the caller against the encoded password from a UserLookup.

Link copied to clipboard
fun interface UserLookup

Resolves a username to BasicUserDetails carrying the caller's own identity.

Functions

Link copied to clipboard

Builds an AuthenticationStrategy.Sync for HTTP Basic authentication.