开发者

how to force client(winform) application to use NTLM when calling web services

开发者 https://www.devze.com 2022-12-25 02:51 出处:网络
I have a winform application calling web services hosted in IIS, by default, the client app will use Kerberose for auth开发者_开发问答entication to IIS, and it failed for some reasons。 But the same a

I have a winform application calling web services hosted in IIS, by default, the client app will use Kerberose for auth开发者_开发问答entication to IIS, and it failed for some reasons。 But the same app works fine at another PC(with different user login), and I found it is using NTLM by checking the IIS server event log.

is there anyway we can change the client app(winform) authentication type?

Thanks in advance


As per the HttpWebRequest.Credentials documentation, to restrict the request authentication to particular methods only, you need to create a new instance of the CredentialCache class, bind your credentials to the desired authentication methods and set it to the Credentials property.


Have u tried hosting the web services with Windows authentication? Then the consuming application must also use the same authentication to access the web service.

0

精彩评论

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