我有一个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已经是最终版,不能再修改了.
任何帮助将不胜感激.
谢谢