AuthProvider

interface AuthProvider

Authentication provider interface.

Functions

Link copied to clipboard
abstract suspend fun addRequestHeaders(request: HttpRequestBuilder)

Add authentication method headers and creds.

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

Check if current provider is applicable to the request.

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

Refresh token if required.

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

Properties

Link copied to clipboard
abstract val sendWithoutRequest: Boolean

Wait for HttpStatusCode.Unauthorized to send credentials.

Inheritors

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