C#中的OpenID和Google.GData.AccessControl.dll [英] OpenID and Google.GData.AccessControl.dll in C#

查看:73
本文介绍了C#中的OpenID和Google.GData.AccessControl.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在设计一个使用OpenId的网站,而Google是我选择的主要提供商之一.我想做的是使用Google的Calendar&联系人(可能是文档)作为每个用户的后备存储.换句话说,如果我网站上的用户想要访问联系人列表,日历等,则他们必须注册自己的Google帐户.然后,他们可以添加/编辑/删除自己心中的内容,因为这是他们的信息. (是的,我对要去的地方有一个特定的想法,只需要弄清楚如何将OpenID绑定到GData.)

I am designing a web site to use OpenId and Google is one of the main providers I have selected. What I would like to do is use Google's Calendar & Contacts (possibly docs) as a backing store for each individual user. In other words, if the user on my site wants to have access to a Contacts List, Calendar, etc they must register their Google account. Then they can add/edit/delete to their heart's content as it is their info. (And yes, I have a specific idea in mind for where I am going, just need to figure out how to tie OpenID to GData.)

有人在OpenID/OAuth和使用Google API之间建立了联系吗?

Has anyone written a tie in between OpenID/OAuth and using the Google APIs?

推荐答案

在深入研究了这个问题之后,我有两种解决方法.

After a lot of digging in to this problem I have 2 ways of solving this.

  1. 使用OpenID并在用户的个人资料上,让他们输入自己的Google凭据(有效,但不是一个很好的解决方案)
  2. 使用OAuth.这需要在Google上注册您的域,并获取要用于OAuth的密钥.设置完成后,很容易在google上访问最终用户的数据存储.

查看Google的用于Web应用程序的OAuth 1.0 .

Look at google's OAuth 1.0 for Web Applications.

还要查看 OAuth-OpenID:如果您认为错误的树是同一个东西,那么您将大错特错,以全面了解OpenID与OAuth.

Also look at OAuth-OpenID: You’re Barking Up the Wrong Tree if you Think They’re the Same Thing for a good overview of OpenID vs OAuth.

这篇关于C#中的OpenID和Google.GData.AccessControl.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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