BasicAuthenticationInterceptor

class BasicAuthenticationInterceptor @Inject constructor(credentialProvider: CredentialProvider) : <ERROR CLASS> ERROR CLASS: Symbol not found for Interceptor

Interceptor used to add Basic Authentication headers to requests.

This interceptor encodes the API user ID and API key in Base64 and adds them to the request headers for endpoints that require Basic Authentication.

Credentials are fetched from CredentialProvider on every request so that the SDK never holds credential state internally.

Parameters

credentialProvider

Supplies the API user ID and API key at request time.

Constructors

Link copied to clipboard
@Inject
constructor(credentialProvider: CredentialProvider)

Functions

Link copied to clipboard
open override fun intercept(chain: ERROR CLASS: Symbol not found for Interceptor.Chain): ERROR CLASS: Symbol not found for Response

Intercepts the request and adds the Basic Authentication header.