OAuth2MatrixClientAuthProvider

class OAuth2MatrixClientAuthProvider(val baseUrl: Url, store: MatrixClientAuthProviderDataStore, onLogout: suspend (LogoutInfo) -> Unit, httpClientEngine: HttpClientEngine?, httpClientConfig: HttpClientConfig<*>.() -> Unit?) : BearerClientAuthProvider<OAuth2MatrixClientAuthProviderData>

Constructors

Link copied to clipboard
constructor(baseUrl: Url, store: MatrixClientAuthProviderDataStore, onLogout: suspend (LogoutInfo) -> Unit, httpClientEngine: HttpClientEngine?, httpClientConfig: HttpClientConfig<*>.() -> Unit?)

Properties

Link copied to clipboard
open override val baseUrl: Url
Link copied to clipboard
open override val sendWithoutRequest: Boolean

Functions

Link copied to clipboard
open suspend override fun addRequestHeaders(request: HttpRequestBuilder, authHeader: HttpAuthHeader?)
Link copied to clipboard
open override fun isApplicable(auth: HttpAuthHeader): Boolean
Link copied to clipboard
open suspend override fun logout(): Result<Unit>

Invoke authentication-provider-specific behavior when logging out.

Link copied to clipboard
open suspend override fun refreshToken(response: HttpResponse): Boolean
Link copied to clipboard
open suspend override fun refreshTokens(bearerTokens: OAuth2MatrixClientAuthProviderData, httpClient: HttpClient): OAuth2MatrixClientAuthProviderData
Link copied to clipboard
open override fun sendWithoutRequest(request: HttpRequestBuilder): Boolean