Package-level declarations

Types

Link copied to clipboard

Configuration used by Auth plugin.

Link copied to clipboard
interface AuthProvider

An authentication provider.

Properties

Link copied to clipboard
val Auth: ClientPlugin<AuthConfig>

A client's plugin that handles authentication and authorization. Typical usage scenarios include logging in users and gaining access to specific resources.

Link copied to clipboard
val AuthCircuitBreaker: AttributeKey<Unit>

Shows that request should skip auth and refresh token procedure.

Link copied to clipboard

Returns all auth providers configured for this client.

Functions

Link copied to clipboard
fun HttpClientConfig<*>.Auth(block: AuthConfig.() -> Unit)

Install Auth plugin.

Link copied to clipboard
inline fun <T : AuthProvider> HttpClient.authProvider(): T?

Returns a single auth provider of the specified type, or null if not found or multiple providers exist.

Link copied to clipboard
fun HttpClient.clearAuthTokens()

Clears cached tokens/credentials from all auth providers that support token clearing.