Package io.ktor.client.features.auth.providers

Types

Link copied to clipboard
class BasicAuthConfig

BasicAuthProvider configuration.

Link copied to clipboard
class BasicAuthCredentials(username: String, password: String)

Credentials for BasicAuthProvider.

Link copied to clipboard
class BasicAuthProvider(credentials: suspend () -> BasicAuthCredentials?, realm: String?, sendWithoutRequestCallback: (HttpRequestBuilder) -> Boolean) : AuthProvider

Client basic authentication provider.

Link copied to clipboard
class BearerAuthConfig

BearerAuthProvider configuration.

Link copied to clipboard
class BearerAuthProvider(refreshTokens: suspend (response: HttpResponse) -> BearerTokens?, loadTokens: suspend () -> BearerTokens?, sendWithoutRequestCallback: (HttpRequestBuilder) -> Boolean, realm: String?) : AuthProvider

Client bearer AuthProvider.

Link copied to clipboard
class BearerTokens(accessToken: String, refreshToken: String)
Link copied to clipboard
class DigestAuthConfig

DigestAuthProvider configuration.

Link copied to clipboard
class DigestAuthCredentials(username: String, password: String)

Credentials for DigestAuthProvider.

Link copied to clipboard
class DigestAuthProvider(credentials: suspend () -> DigestAuthCredentials?, realm: String?, algorithmName: String) : AuthProvider

Client digest AuthProvider.

Functions

Link copied to clipboard
fun Auth.basic(block: BasicAuthConfig.() -> Unit)

Add BasicAuthProvider to client Auth providers.

Link copied to clipboard
fun Auth.bearer(block: BearerAuthConfig.() -> Unit)

Add BearerAuthProvider to client Auth providers.

Link copied to clipboard
fun Auth.digest(block: DigestAuthConfig.() -> Unit)

Install client DigestAuthProvider.