首页 > 解决方案 > Android_Ntlm - 传递域名的问题

问题描述

对于 NTLM 身份验证,我使用的是外部库https://github.com/netcosports/Android_Ntlm

当我不这样转移域时

OkHttpClient client = new OkHttpClient.Builder ()
                 .authenticator (new NTLMAuthenticator (userName, password, null))
                 .build ();

工作正常

但是当我像这样通过域时

String userDomain = “ourdomain”;
OkHttpClient client = new OkHttpClient.Builder ()
                 .authenticator (new NTLMAuthenticator (userName, password, userDomain))
                 .build ();

我收到一个错误

后续请求过多

标签: androidokhttpntlm-authentication

解决方案


推荐阅读