BasicAuthProvider

class BasicAuthProvider : AuthProvider

Client basic authentication provider.

Constructors

<init>

BasicAuthProvider(
    username: String,
    password: String,
    realm: String?)

Client basic authentication provider.

Functions

addRequestHeaders

suspend fun addRequestHeaders(
    request: HttpRequestBuilder
): Unit

Add authentication method headers and creds.

isApplicable

fun isApplicable(auth: HttpAuthHeader): Boolean

Check if current provider is applicable to the request.