WIF 和 REST 很合适吗?
我们有很多使用 WIF 和自定义数据库身份验证来保护安全的 Web 应用程序,目前我们正在构建 RESTful 公共 API。我的问题是我们是否可以使用现有的 WIF 实现来验证这些新的 RESTFul 服务请求?
谢谢!
We have bunch of web applications which are secured using WIF and custom database authentication, currently we are in the process of building a RESTful public API. My question is whether we can use the existing WIF implementation to authenticate these new RESTFul service requesuts?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以查看这两篇博客文章,其中涉及如何使用 WIF 来保护 OData 端点(这是 REST 的增强版):
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/21/connecting-to-an-oauth-2-0-protected-odata-service.aspx
我将正在集成 WIF很快就会使用经典 REST 和 OData 端点,如果您有任何反馈,我很感兴趣。
文森特·菲利普
You can take a look at those two blog posts relating how to use WIF to secure an OData endpoint (which is REST on steroids):
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/21/connecting-to-an-oauth-2-0-protected-odata-service.aspx
I'll be in the process of integrating WIF with classic-REST and OData endpoints shortly, if you have any feedbacks, I'm interested.
Vincent-Philippe
REST 服务通常使用与 WIF 开箱即用支持的令牌格式不同的令牌格式(例如 SWT 与 SAML)。您可以扩展 WIF,以便它理解适当的令牌格式。有很多例子展示了如何做到这一点。
请参阅此处的示例: http:// zamd.net/2011/02/08/using-simple-web-token-swt-with-wif/
REST services typically use different token formats from those supported by WIF out of the box (e.g. SWT vs SAML). You can extend WIF so it understands the appropriate token format. There are many examples that show how to do that.
See here for an example: http://zamd.net/2011/02/08/using-simple-web-token-swt-with-wif/