在Silverlight 5中调用Windows-Auth安全的OData服务跨域 [英] Calling Windows-Auth secured OData Service Cross Domain in Silverlight 5

查看:124
本文介绍了在Silverlight 5中调用Windows-Auth安全的OData服务跨域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图调用一个从Silverlight 5应用程序的Windows身份验证保护的OData服务(SharePoint 2010中包含的OOTB)。在我的研究(具体来说,这个帖子)我看到它说的地方:

I'm trying to call an OData service (the OOTB one included with SharePoint 2010) that's secured with Windows Authentication from a Silverlight 5 app. In my research (specifically this post) I saw somewhere where it says:


警告:虽然可能在Silverlight x域调用,所以
,因为其他域已正确配置
ClientAccessPolicy.xml文件,如果其他域需要您登录,
无法提供您的凭据。

Warning: While it is possible in Silverlight to do x-domain calls, so long as the other domain has a correctly configured ClientAccessPolicy.xml file, if the other domain needs you to logon, there is no way to provide your credentials.

所以我的问题是,是否真的没有办法调用一个OData服务跨域的Windows Auth安全?这似乎是上面的帖子说的,但我很难相信这是不可能的...

So my question is, is there really no way to call a OData service cross domain that's secured with Windows Auth? This seems to be what the above post is stating, but I find it hard to believe it just isn't possible...

推荐答案

回答我自己的帖子跟进我发现的研究...因为NTLM是每个请求的协商,你不能这样做很容易。我可以覆盖生成的DataContext代理,但它会得到相当混乱。以下是协商内容:innovation.ch/personal/ronald/ntlm.html

Answering my own post to follow up on the research I found... Because NTLM is a negotation of each request, you can't do this very easily. I could override the generated DataContext proxy, but it would get pretty messy. Here's what the negotation looks like: innovation.ch/personal/ronald/ntlm.html

这篇关于在Silverlight 5中调用Windows-Auth安全的OData服务跨域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆