BearerAuthProvider
class BearerAuthProvider(refreshTokens: suspend (response: HttpResponse) -> BearerTokens?, loadTokens: suspend () -> BearerTokens?, sendWithoutRequestCallback: (HttpRequestBuilder) -> Boolean, realm: String?) : AuthProvider
Content copied to clipboard
Client bearer AuthProvider.
Constructors
Link copied to clipboard
fun BearerAuthProvider(refreshTokens: suspend (response: HttpResponse) -> BearerTokens?, loadTokens: suspend () -> BearerTokens?, sendWithoutRequestCallback: (HttpRequestBuilder) -> Boolean = { true }, realm: String?)
Content copied to clipboard
Functions
Link copied to clipboard
Add authentication method headers and creds.
Link copied to clipboard
Link copied to clipboard
Check if current provider is applicable to the request.
Link copied to clipboard
Refresh token if required.
Link copied to clipboard
open override fun sendWithoutRequest(request: HttpRequestBuilder): Boolean
Content copied to clipboard
Properties
Link copied to clipboard
Wait for HttpStatusCode.Unauthorized to send credentials.