ktor-client-auth
Module Contents
alltypes
Module Contents
class
Auth
Module Contents
Auth
(
providers
:
MutableList
<
AuthProvider
>
=
mutableListOf()
)
companion
object
Feature
:
HttpClientFeature
<
Auth
,
Auth
>
Module Contents
fun
install
(
feature
:
Auth
,
scope
:
HttpClient
)
:
Unit
val
key
:
AttributeKey
<
Auth
>
fun
prepare
(
block
:
Auth
.
(
)
->
Unit
)
:
Auth
fun
install
(
feature
:
Auth
,
scope
:
HttpClient
)
:
Unit
val
key
:
AttributeKey
<
Auth
>
fun
prepare
(
block
:
Auth
.
(
)
->
Unit
)
:
Auth
val
providers
:
MutableList
<
AuthProvider
>
interface
AuthProvider
Module Contents
abstract
suspend
fun
addRequestHeaders
(
request
:
HttpRequestBuilder
)
:
Unit
abstract
fun
isApplicable
(
auth
:
HttpAuthHeader
)
:
Boolean
abstract
val
sendWithoutRequest
:
Boolean
class
BasicAuthConfig
Module Contents
BasicAuthConfig
(
)
lateinit
var
password
:
String
var
realm
:
String
?
var
sendWithoutRequest
:
Boolean
lateinit
var
username
:
String
class
BasicAuthProvider
:
AuthProvider
Module Contents
BasicAuthProvider
(
username
:
String
,
password
:
String
,
realm
:
String
?
=
null
,
sendWithoutRequest
:
Boolean
=
false
)
suspend
fun
addRequestHeaders
(
request
:
HttpRequestBuilder
)
:
Unit
fun
isApplicable
(
auth
:
HttpAuthHeader
)
:
Boolean
val
sendWithoutRequest
:
Boolean
class
DigestAuthConfig
Module Contents
DigestAuthConfig
(
)
var
algorithmName
:
String
var
password
:
String
var
realm
:
String
?
var
username
:
String
class
DigestAuthProvider
:
AuthProvider
Module Contents
DigestAuthProvider
(
username
:
String
,
password
:
String
,
realm
:
String
?
,
algorithmName
:
String
=
"MD5"
)
suspend
fun
addRequestHeaders
(
request
:
HttpRequestBuilder
)
:
Unit
val
algorithmName
:
String
fun
isApplicable
(
auth
:
HttpAuthHeader
)
:
Boolean
val
password
:
String
val
realm
:
String
?
val
sendWithoutRequest
:
Boolean
val
username
:
String
io.ktor.client.HttpClientConfig
Module Contents
fun
HttpClientConfig
<
*
>
.
Auth
(
block
:
Auth
.
(
)
->
Unit
)
:
Unit
package
io.ktor.client.features.auth
Module Contents
class
Auth
Module Contents
Auth
(
providers
:
MutableList
<
AuthProvider
>
=
mutableListOf()
)
companion
object
Feature
:
HttpClientFeature
<
Auth
,
Auth
>
Module Contents
fun
install
(
feature
:
Auth
,
scope
:
HttpClient
)
:
Unit
val
key
:
AttributeKey
<
Auth
>
fun
prepare
(
block
:
Auth
.
(
)
->
Unit
)
:
Auth
fun
install
(
feature
:
Auth
,
scope
:
HttpClient
)
:
Unit
val
key
:
AttributeKey
<
Auth
>
fun
prepare
(
block
:
Auth
.
(
)
->
Unit
)
:
Auth
val
providers
:
MutableList
<
AuthProvider
>
interface
AuthProvider
Module Contents
abstract
suspend
fun
addRequestHeaders
(
request
:
HttpRequestBuilder
)
:
Unit
abstract
fun
isApplicable
(
auth
:
HttpAuthHeader
)
:
Boolean
abstract
val
sendWithoutRequest
:
Boolean
io.ktor.client.HttpClientConfig
Module Contents
fun
HttpClientConfig
<
*
>
.
Auth
(
block
:
Auth
.
(
)
->
Unit
)
:
Unit
package
io.ktor.client.features.auth.providers
Module Contents
class
BasicAuthConfig
Module Contents
BasicAuthConfig
(
)
lateinit
var
password
:
String
var
realm
:
String
?
var
sendWithoutRequest
:
Boolean
lateinit
var
username
:
String
class
BasicAuthProvider
:
AuthProvider
Module Contents
BasicAuthProvider
(
username
:
String
,
password
:
String
,
realm
:
String
?
=
null
,
sendWithoutRequest
:
Boolean
=
false
)
suspend
fun
addRequestHeaders
(
request
:
HttpRequestBuilder
)
:
Unit
fun
isApplicable
(
auth
:
HttpAuthHeader
)
:
Boolean
val
sendWithoutRequest
:
Boolean
class
DigestAuthConfig
Module Contents
DigestAuthConfig
(
)
var
algorithmName
:
String
var
password
:
String
var
realm
:
String
?
var
username
:
String
class
DigestAuthProvider
:
AuthProvider
Module Contents
DigestAuthProvider
(
username
:
String
,
password
:
String
,
realm
:
String
?
,
algorithmName
:
String
=
"MD5"
)
suspend
fun
addRequestHeaders
(
request
:
HttpRequestBuilder
)
:
Unit
val
algorithmName
:
String
fun
isApplicable
(
auth
:
HttpAuthHeader
)
:
Boolean
val
password
:
String
val
realm
:
String
?
val
sendWithoutRequest
:
Boolean
val
username
:
String
fun
Auth
.
basic
(
block
:
BasicAuthConfig
.
(
)
->
Unit
)
:
Unit
fun
Auth
.
digest
(
block
:
DigestAuthConfig
.
(
)
->
Unit
)
:
Unit