AuthProvider

interface AuthProvider

`An authentication provider.

Functions

Link copied to clipboard
abstract suspend fun addRequestHeaders(request: HttpRequestBuilder, authHeader: HttpAuthHeader? = null)

Adds an authentication method headers and credentials.

Link copied to clipboard
abstract fun isApplicable(auth: HttpAuthHeader): Boolean

Checks if the current provider is applicable to a request.

Link copied to clipboard
open suspend fun refreshToken(response: HttpResponse): Boolean

Refreshes a token if required.

Link copied to clipboard
open fun sendWithoutRequest(request: HttpRequestBuilder): Boolean

Properties

Link copied to clipboard
abstract val sendWithoutRequest: Boolean

Waits for HttpStatusCode.Unauthorized to send credentials.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard