OAuthAuthenticator

class OAuthAuthenticator(endpoint: String, clientId: String, clientSecret: String, refreshToken: String, httpClient: HttpClient = AirbyteOkHttpClient(OkHttpClient.Builder().build())) : Interceptor

Constructors

Link copied to clipboard
constructor(endpoint: String, clientId: String, clientSecret: String, refreshToken: String, httpClient: HttpClient = AirbyteOkHttpClient(OkHttpClient.Builder().build()))

Types

Link copied to clipboard
object Constants

Functions

Link copied to clipboard
open override fun intercept(chain: Interceptor.Chain): Response
Link copied to clipboard
fun queryForAccessToken(): JsonNode

We make this available publicly because Salesforce needs the response from OAuth request in order to know which base URL to use for its next HTTP requests.