如何在SiteMinder后面调用WCF Http Service
我正在尝试调用托管在 ASP.NET 应用程序中的 WCF 4 Http Web 服务。该服务受 SiteMinder 保护。
我想知道如何以编程方式调用 Web 服务,更具体地说,我需要传递哪些信息才能在 SiteMinder 中获得授权来访问我的资源。
我从同一服务器上运行的 ASP.NET 应用程序发出请求,因此我可以访问身份验证 cookie。
I am trying to call WCF 4 Http Web Services which are hosted within an ASP.NET application. The Service is protected behind SiteMinder.
I was wondering how I could programmatically call the web service, and more specifically what information will I need to pass to be authorized within SiteMinder to access my resources.
I am making the request from the ASP.NET application running on the same server, so I have access to the authentication cookie.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先获取 SiteMinder 身份验证令牌,如下所示:
然后像这样通过 Web 服务调用传递此令牌(使用 Microsoft.Http.dll):
...
First obtain the SiteMinder authentication token like so:
Then pass this token as with your web service calls like so (using Microsoft.Http.dll):
...