AuthProvider

interface AuthProvider

Authentication provider interface.

Functions

addRequestHeaders

abstract suspend fun addRequestHeaders(
    request: HttpRequestBuilder
): Unit

Add authentication method headers and creds.

isApplicable

abstract fun isApplicable(auth: HttpAuthHeader): Boolean

Check if current provider is applicable to the request.

Inheritors

BasicAuthProvider

class BasicAuthProvider : AuthProvider

Client basic authentication provider.

DigestAuthProvider

class DigestAuthProvider : AuthProvider

Client digest AuthProvider.