OAuth的C#库谷歌,雅虎微博 [英] OAuth C# Library for Google, Yahoo! Twitter

查看:105
本文介绍了OAuth的C#库谷歌,雅虎微博的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个图书馆,让我在我的应用程序ASP.NET/C#使用OAuth,这样我可以验证使用下面的OAuth供应商之一的用户

I'm looking for a library that will allow me to use OAuth in my ASP.NET/C# applications, such that I can authenticate users using one of the following OAuth providers


  1. 谷歌

  1. Google

雅虎!

微博

我已经看了各种开源库,发现有一个问题或其他与他们(有的不工作的时候,对一个服务的一些工作不是不是别人)。我也看了OAuthDotNet,我必须承认,我发现它太复杂找出如何开始使用它,所以我没有真正尝试过。

I've looked at various open source libraries and find that there is one issue or another with them (some don't work at all, some work against one service not not others). I've also looked at OAuthDotNet and I must admit that I find it way too complicated to figure out how to begin using it and so I've not really tried it.

所以基本上我在寻找一个简单易用的库,对上述供应商工作(至少)。

So essentially I'm looking for a simple to use library that works against the above mentioned providers (at least).

推荐答案

成龙我对这个博客文章
OAuth的C#库

Jackie I have a blog post on this OAuth C# Library

有一个图书馆(包括源$ C ​​$ C),你可以下载一个简单的示例项目开始使用这一点。

There is a library (including source code) and a simple sample project you can download to get started with this.

我测试过它反对
1.谷歌
2.微博
3.雅虎
4. Vimeo的

I've tested it against 1. Google 2. Twitter 3. Yahoo 4. Vimeo

您不提的OAuth的版本,你想支持,所以你应该知道,库支持的OAuth 1.0修订版A,而不是只的OAuth 2.0。大多数网站都支持OAuth的1.0版本A

You don't mention the version of OAuth you'd like to support so you should know that the library supports OAuth 1.0 revision A only and not OAuth 2.0. Most site today support OAuth 1.0 revision a.

我已经把样本项目很简单的故意,因此那些从开始沿着这条道路没有挣扎试图找出如何使用图书馆。图书馆是不是过度设计像我相信有些图书馆出来有那么它是相当简单的提升如果需要的话。但我建议你尝试,你已经熟悉了OAuth协议之后。

I've kept the sample project very simple intentionally, so those starting out down this path don't have to struggle trying to figure out how to use the library. The library is not "over engineered" like I believe some libraries out there are so it is fairly simple to enhance if need be. But I suggest you attempt that only after you've familiarized yourself with the OAuth protocol.

其实该项目是托管在谷歌code(在博客文章链接)。

The project in fact is an open source project hosted on Google code (link in the blog post).

请注意:由于雅虎已经实施他们的服务的方式是不可能的(或不单纯)来测试对他们的服务,从开发机器

Note: Due to the way Yahoo! has implemented their service it is not possible (or not simple) to test against their service from your development machine.

我希望这有助于。

这篇关于OAuth的C#库谷歌,雅虎微博的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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