代表经过身份验证的 SAML 用户发出 asmx 请求
使用 Windows Identity Foundation 我有一个已成功登录并能够请求页面的用户。但任何依赖对 WIF 受保护资源的 asmx Web 服务请求的页面都会出现问题。
有没有办法将 SAML 信息添加到 asmx 请求中,类似于将其添加到 WCF 请求中?
Using Windows Identity Foundation I have a user who is successfully logged in and able to request pages. But there is an issue on any page that relies upon a asmx web service request to a WIF protected resource.
Is there a way to add SAML information to an asmx request similar to how you would add it to a WCF request?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您想要的是肥皂消息中的自定义标头。
然后,您可以使用它来指定执行操作的用户凭据。
这是一个相当高级的主题...
2D00-a-solution.aspx">http://weblogs.asp.net/avnerk/archive/2006/04/26/Adding-custom-headers-to-every-WCF -call-2D00-a-solution.aspx
凭据打包。
但想法是,您向服务接受的调用添加一个约束,以确保将另一个 当然,方法是回到基础知识,基本上构建一堆 xml(soap 数据包),然后使用请求和响应类手动处理信息(不理想)
I think what you want is a custom header in your soap messages.
you can then use that to specify the user credentials from which the action is being performed.
It's a fairly advanced subject this ...
2D00-a-solution.aspx">http://weblogs.asp.net/avnerk/archive/2006/04/26/Adding-custom-headers-to-every-WCF-call-2D00-a-solution.aspx
but the idea is that you are kind of adding a constraint to the calls that the service accepts shaping the packet to ensure that the credentials are wrapped up.
the other way of course is to go back to basics and basically build a lump of xml (soap packet) and then use the request and response classes to manually process the information (not ideal)