BasicAuthConfig

class BasicAuthConfig

A configuration for BasicAuthProvider.

Constructors

Link copied to clipboard
fun BasicAuthConfig()

Functions

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

Allows you to specify authentication credentials.

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

Sends credentials 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) Specifies the realm of the current provider.

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.