小编use*_*201的帖子

将Windows安全令牌传递给使用NTLM和Windows身份验证调用另一个Web服务的对象

我有一个Web应用程序调用引用的dll/api的对象调用wcf服务.

Machine 1 = where the wcf service resides
Machine 2 = IIS server, the web application that uses the api that calls the service from Machine 1
Run Code Online (Sandbox Code Playgroud)

我的代码:

using (WindowsAuthenticationContext ctx = identity.Impersonate()){
  //Call to the API goes here
}
Run Code Online (Sandbox Code Playgroud)

当我从机器2(IIS服务器)访问该网站时,它的工作原理.但是,当我从另一台客户端计算机访问该网站时,它给出了一个错误"请求令牌无法满足".

注意:api已经是最终版,不能再修改了.

任何帮助将不胜感激.

谢谢

iis wcf windows-authentication

5
推荐指数
1
解决办法
449
查看次数

标签 统计

iis ×1

wcf ×1

windows-authentication ×1