简体   繁体   English

.NET和Web服务中的多跳模拟

[英]Multiple hops impersonation in .NET and web services

I have old school web service and it is configured to impersonate the caller. 我有老式的Web服务,它已配置为模拟呼叫者。 Works with no problem. 没问题。 Now I am thinking about adding another more higher level ASP.NET (non-wcf) web service which would be calling the original web service. 现在,我正在考虑添加另一个更高级别的ASP.NET(非wcf)Web服务,它将调用原始Web服务。

The question is - will the client identity flow across two hops as in client (1)-> new web service (2)-> old web service) or there will be issues? 问题是-客户端身份是否像客户端(1)->新Web服务(2)->旧Web服务中那样跨越两跳流动?还是会出现问题?

I believe unless the new ASP.NET web service impersonates the client, the identity will not flow to the second web service. 我相信,除非新的ASP.NET Web服务模拟了客户端,否则身份将不会流到第二个Web服务。 If there is no impersonation then windows identity of the worker process will be sent to the old service. 如果没有模拟,则工作进程的Windows身份将被发送到旧服务。 With impersonation, new service code will run under same user as that of client and then using DefaultCredentials , you can call the old web service. 通过模拟,新的服务代码将在与客户端相同的用户下运行,然后使用DefaultCredentials可以调用旧的Web服务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM