AuthProvider

interface AuthProvider

`An authentication provider.

Inheritors

Properties

Link copied to clipboard

Waits for HttpStatusCode.Unauthorized to send credentials.

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