BasicAuthConfig

class BasicAuthConfig

BasicAuthProvider configuration.

Constructors

Link copied to clipboard
fun BasicAuthConfig()

Functions

Link copied to clipboard
fun credentials(block: suspend () -> BasicAuthCredentials?)

Required: Credentials provider.

Link copied to clipboard
fun sendWithoutRequest(block: (HttpRequestBuilder) -> Boolean)

Send credentials in without waiting for HttpStatusCode.Unauthorized.

Properties

Link copied to clipboard
lateinit var password: String

Required: The password of the basic auth.

Link copied to clipboard
var realm: String? = null

Optional: current provider realm

Link copied to clipboard
var sendWithoutRequest: Boolean = false

Send credentials in without waiting for HttpStatusCode.Unauthorized.

Link copied to clipboard
lateinit var username: String

Required: The username of the basic auth.