任何人都可以解释OAuth的? [英] Can anybody explain OAuth?

查看:238
本文介绍了任何人都可以解释OAuth的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 http://oauth.net/ 读了一些关于它,这是一个简单的方法发布和使用受保护的数据显然交互。

I've read a bit about it at http://oauth.net/ , it's "a simple way to publish and interact with protected data" apparently.

我想这正是我需要提供通过REST的Web从Android / iPhone应用程序访问数据的安全方式服务,但我不能工作了它到底是什么。

I think it's exactly what I need to provide a secure way of accessing data from an android/iphone app via a REST web service, but I can't work out exactly what it is.

所以,简单地说,究竟是什么做的,是有它的任何(真)简单的例子在行动中,我可以跟随,最好实施,可以从智能手机的应用程序可以访问C#的东西吗?

So, put simply, what exactly does it do and are there any (really) simple examples of it in action I can follow, preferably implementing something in c# that can be accessed from a smartphone app?

推荐答案

从所提供的链接克雷格斯顿茨:

From the link provided by Craig Stuntz:

打开ID 为您提供多个网站一个登录。使用Open ID的网站 - - 每当你需要登录到Zooomr时候你会被重定向到您的Open ID的网站,你登录,然后再返回到Zooomr。 的OAuth 让你授权一家网站 - 消费者 - 提供者 - 从其他网站访问您的数据。例如,你要授权印刷供应商 - 称之为武 - 从照片库中抓住你的照片 - 称之为Flickr的。哞将您重定向到Flickr它会问你,比如,哞哞要下载Flickr的照片。这很酷?,然后回哞打印您的照片。

Open ID gives you one login for multiple sites. Each time you need to log into Zooomr – a site using Open ID – you will be redirected to your Open ID site where you login, and then back to Zooomr. OAuth lets you authorise one website – the consumer – to access your data from another website – the provider. For instance, you want to authorise a printing provider – call it Moo – to grab your photos from a photo repository – call it Flickr. Moo will redirect you to Flickr which will ask you, for instance, "Moo wants to download your Flickr photos. Is that cool?", and then back to Moo to print your photos.

我认为这是一个很好的定义。至于链接和例子我可能会建议:

I think that's a very good definition. As for links and examples I may recommend:

  • DotNetOpenOAuth, which stackOverflow is in the use-cases.
  • OAuth library for .NET released by Madgex with documentation and demos available.

希望它帮助。

这篇关于任何人都可以解释OAuth的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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