来处理.NET WCF的Web API认证的最佳方法 [英] Best way to handle authentication on .NET WCF Web API

查看:185
本文介绍了来处理.NET WCF的Web API认证的最佳方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是轻度熟悉DotNetOpenAuth和OAuth一般,但在网页API发展而言,什么是以下标准术语来锁定Web服务的最佳方式:

I'm mildly familiar with DotNetOpenAuth and OAuth in general, but in terms of Web API development, what is the best way to lock down a web service in terms of the following criteria:


  • 易于实施

  • 互操作性/​​与最终用户所面临的平台(iOS版,Android版,赢手机,软硬...)的兼容性

  • 不管是不是这显然是基于标准(如OAuth的为例)

谢谢!

推荐答案

请看看这里:的的OAuth 2.0的Web API

WebApiContrib 项目也有基本身份验证样本是直线前进,但它不应该没有SSL使用。

Inside the WebApiContrib project there are also Basic Authentication samples which is straight forward but it should not be used without SSL.

这篇关于来处理.NET WCF的Web API认证的最佳方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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