开发者

Soap NTLM Authorization

I'm trying to access a webservice that it's protected with NTLM Authorization. Usually, for a normal webservice protected with basic HTTP Auth I can 开发者_JS百科authenticate using the "Authorization" header in the following way:

Authorization : "BASIC OASDmkAsofnASncvosNoaisdf"

where the string after the "BASIC" its the "username:password" encoded in base64.

My question is, it is possible to do something similar for NTLM?

Thanks!


What client are you using for the webservice? IF you are using the microsoft webservices client (not WFC) then you can get the underlying HttpWebRequest and set the credentials on it.

I am not sure how to do this on WCF.

I strongly suggest that you use microsoft web service clients for this. NTLM is a multi-leg challenge response protocol, and it is not easy to implement it in your code.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜