简体   繁体   English

将OAuth与OData结合使用

[英]Using OAuth with OData

Looking for any recent examples using OAuth with OData pref. 寻找使用OAuth和OData pref的最新示例。 from a WPF client without AppFabric or other dependencies 来自没有AppFabric或其他依赖项的WPF客户端

found this year+ old article 发现今年+旧文章

http://blogs.msdn.com/b/astoriateam/archive/2011/01/20/oauth-2-0-and-odata-protecting-an-odata-service-using-oauth-2-0.aspx http://blogs.msdn.com/b/astoriateam/archive/2011/01/20/oauth-2-0-and-odata-protecting-an-odata-service-using-oauth-2-0.aspx

which requires AppFabric 这需要AppFabric

another from DevEx also a year+ old but the sample doesn't compile http://community.devexpress.com/blogs/theonewith/archive/2011/02/24/odata-and-oauth-part-1-introduction.aspx 另一个来自DevEx也是一年+旧但是样本没有编译http://community.devexpress.com/blogs/theonewith/archive/2011/02/24/odata-and-oauth-part-1-introduction.aspx

all the other search results refer to these 2 sites 所有其他搜索结果都参考这两个网站

wondering if there's been any new developments over the past year to build upon 想知道过去一年是否有任何新的发展需要继续发展

ASP.NET 4.5 WebAPI will support both oData as well as oAuth out of the box. ASP.NET 4.5 WebAPI将支持oData和oAuth开箱即用。 If you are starting a new project I would recommend looking into that one. 如果你要开始一个新项目,我建议你去研究一下。

Scott Gu's last info is that the ASP.NET WebAPI beta oData is already supported and oAuth will be shipped with the RTM. Scott Gu的最后一个信息是已经支持ASP.NET WebAPI beta oData,oAuth将随RTM一起提供。

Based on past experiences with ASP.NET versions, the availability of the RTM is not for too long. 根据过去的ASP.NET版本经验,RTM的可用性不会太长。

You can read about the ASP.NET WebAPI (also see comments): http://weblogs.asp.net/scottgu/archive/2012/02/23/asp-net-web-api-part-1.aspx 您可以阅读有关ASP.NET WebAPI的信息(另请参阅注释): http ://weblogs.asp.net/scottgu/archive/2012/02/23/asp-net-web-api-part-1.aspx

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

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