OkHttp3:authenticator.setCredentials wrong
Closed this issue · 2 comments
kjklmn commented
client = new OkHttpClient();
final DigestAuthenticator authenticator = new DigestAuthenticator();
authenticator.setCredentials(new Credentials("username", "pass"));
this is your code, but authenticator don't have method "setCredentials",can you help me to solve it?
jpstotz commented
Seem like you have to specify the credentials now as a parameter for the constructor of DigestAuthenticator. You can easily see that in the source code of DigestAuthenticator
rburgst commented
you are correct. will update the docs.