class Auth

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

You can learn more from Authentication and authorization.

providers - list of auth providers to use.


Link copied to clipboard
object Plugin : HttpClientPlugin<Auth, Auth>


Link copied to clipboard
val providers: MutableList<AuthProvider>


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

Installs the client's BasicAuthProvider.

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

Installs the client's BearerAuthProvider.

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

Installs the client's DigestAuthProvider.