BasicAuthConfig

A configuration for BasicAuthProvider.

Constructors

Link copied to clipboard

Functions

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

Allows you to specify authentication credentials.

Link copied to clipboard

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

Send credentials in without waiting for HttpStatusCode.Unauthorized.

Link copied to clipboard
lateinit var username: String

Required: The username of the basic auth.