okhttp / okhttp3 / OkHttpClient / Builder / authenticator

authenticator

fun authenticator(authenticator: Authenticator): OkHttpClient.Builder

Sets the authenticator used to respond to challenges from origin servers. Use proxyAuthenticator to set the authenticator for proxy servers.

If unset, the no authentication will be attempted.