首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >“谷歌账户的OpenID2将于2015年4月20日消失”。我需要担心吗?

“谷歌账户的OpenID2将于2015年4月20日消失”。我需要担心吗?
EN

Stack Overflow用户
提问于 2014-11-26 09:01:22
回答 1查看 1.7K关注 0票数 13

我正在使用ASP.NET开发一个网站,我使用Oauth功能注册用户到我的网站。我从Visual 2013的nuget包下载了DontNetOpenOauth。到目前为止,我已经实现了facebook身份验证。我也希望使用谷歌认证。但当我去那里的网站上写着。

“谷歌账户的OpenID2将于2015年4月20日消失”

当我转到这个警告的详细页面时,上面写着

“一些应用程序和网站在登录时使用OpenID 2.0进行身份验证,并访问您授予他们访问权限的数据。从2015年4月20日起,OpenID 2.0将不再适用于Google。如果您看到了将您带到此页面的警告,这意味着您正在使用OpenID 2.0的应用程序或网站,并且可能会受到此更改的影响。我们建议您访问该应用程序的帮助中心,或与其支持团队联系。”

这是链接。

https://support.google.com/accounts/answer/6135882

老实说,我不熟悉这个oauth认证过程。这是什么警告信息?我需要担心这个吗?是否需要进行任何更改或需要安装任何软件包?

EN

回答 1

Stack Overflow用户

发布于 2014-12-03 11:06:05

不,您不需要担心,这只是意味着开发人员@ Stackoverflow必须稍微修改他们的代码,但是它应该工作得很好。

编辑:

您必须将代码从OpenID更改为OAuth 2,使用具有最小作用域的http://developers.google.com/accounts/docs/OAuth2WebServer,即profile,从该配置文件中可以确定哪个用户是该用户,并将其登录到

您不必保存返回的令牌,因为在下次登录之前不再需要它,Goole将自动向您传递新的或相同的令牌。

我的建议是使用这个文档可以找到ID

代码语言:javascript
复制
{
 "kind": "plus#person",
 "etag": "\"RqKWnRU4WW46-6W3rWhLR9iFZQM/hGBwxYeYt07li9hNmxa2J7GE_0c\"",
 "nickname": "GreYFoX",
 "occupation": "Computer Engineer",
 "skills": "iOS Developement, Android Developement",
 "birthday": "0000-09-20",
 "gender": "male",
 "emails": [
  {
   "value": "@#^$%@^#@gmail.com",
   "type": "account"
  }
 ],
 "urls": [
  {
   "value": "http://www.myspace.com/Shereef",
   "type": "otherProfile",
   "label": "Shereef"
  },
  {
   "value": "http://Shereefz.spaces.live.com",
   "type": "otherProfile",
   "label": "shereefz"
  },
  {
   "value": "http://www.plaxo.com/profile/showPublic/Shereef",
   "type": "otherProfile",
   "label": "shereef"
  },
  {
   "value": "http://cid-c74ed9e76d675051.profile.live.com",
   "type": "otherProfile",
   "label": "@&#$%&@#%^$@live.com"
  },
  {
   "value": "http://www.plaxo.com/profile/showPublic/null",
   "type": "otherProfile",
   "label": "null"
  },
  {
   "value": "http://pulse.yahoo.com/_VMZ2QYN3AWG57HS5IUW4T2KHRM",
   "type": "otherProfile",
   "label": "Shereef Marzouk"
  },
  {
   "value": "http://about.me/Shereef",
   "type": "otherProfile",
   "label": "About.me"
  },
  {
   "value": "http://www.youtube.com/user/Shereefz",
   "type": "otherProfile",
   "label": "Shereef Marzouk"
  },
  {
   "value": "http://www.youtube.com/user/Shereefz",
   "type": "otherProfile",
   "label": "Shereef Marzouk"
  },
  {
   "value": "http://www.myspace.com/Shereef",
   "type": "otherProfile",
   "label": "Shereef"
  },
  {
   "value": "http://Shereefz.spaces.live.com",
   "type": "otherProfile",
   "label": "shereefz"
  },
  {
   "value": "http://profiles.google.com/17F648F7-5C7D-42D4-A40F-CAC12280C712",
   "type": "otherProfile",
   "label": "SheefoPad"
  },
  {
   "value": "http://www.youtube.com/user/Shereefz",
   "type": "otherProfile",
   "label": "Shereef Marzouk"
  },
  {
   "value": "http://Shereefz.spaces.live.com",
   "type": "otherProfile",
   "label": "shereefz"
  },
  {
   "value": "http://www.myspace.com/Shereef",
   "type": "otherProfile",
   "label": "Shereef"
  },
  {
   "value": "http://profiles.google.com/17F648F7-5C7D-42D4-A40F-CAC12280C712",
   "type": "otherProfile",
   "label": "SheefoPad"
  },
  {
   "value": "https://profiles.google.com/104183538590490028018/buzz",
   "type": "contributor",
   "label": "Buzz"
  },
  {
   "value": "https://developers.google.com/groups/chapter/103706763079402130148/",
   "type": "contributor",
   "label": "GDG Alexandria (Google Developers Group Alexandria)"
  },
  {
   "value": "http://www.shereef.net",
   "type": "contributor",
   "label": "Shereef"
  },
  {
   "value": "http://shereef.net/resume",
   "type": "other",
   "label": "Resume"
  },
  {
   "value": "http://shereef.net/blog",
   "type": "other",
   "label": "Blogger"
  },
  {
   "value": "http://about.me/shereef",
   "type": "other",
   "label": "About.me"
  },
  {
   "value": "http://pulse.yahoo.com/sheefoz",
   "type": "other",
   "label": "sheefoz"
  },
  {
   "value": "http://facebook.com/Shereefz",
   "type": "other",
   "label": "shereefz"
  },
  {
   "value": "http://www.linkedin.com/in/shereef",
   "type": "other",
   "label": "shereef"
  }
 ],
 "objectType": "person",
 "id": "104183538590490028018",
 "displayName": "Shereef Marzouk",
 "name": {
  "familyName": "Marzouk",
  "givenName": "Shereef"
 },
 "tagline": "Senior Mobile Developer / Team lead at X Digital Group",
 "braggingRights": "XDG Hero",
 "aboutMe": "<span>Shereef Marzouk is an Egyptian mobile applications developer who enjoys his work very much, with many years of experience of development in mobile and general development, Shereef also loves helping people and love sharing, He also develops free-lance applications under his personal company name Tools Era (ToolsEra), Shereef is an Egyptian with his own cultural views and politic, Shereef is not your typical Egyptian nor Developer.</span>",
 "relationshipStatus": "engaged",
 "url": "https://plus.google.com/+ShereefMarzouk",
 "image": {
  "url": "https://lh3.googleusercontent.com/-P9UMptk6e5U/AAAAAAAAAAI/AAAAAAAFzp0/v3ArGL-l8Tg/photo.jpg?sz=50",
  "isDefault": false
 },
 "organizations": [
  {
   "name": "Alexandria Higher Institute of Engineering and Technology",
   "title": "Computer Engineering",
   "type": "school",
   "startDate": "2005",
   "endDate": "2011",
   "primary": false
  },
  {
   "name": "English Lycee Liberity",
   "title": "School",
   "type": "school",
   "startDate": "1994",
   "endDate": "2004",
   "primary": false
  },
  {
   "name": "Sidi Gaber Language School",
   "title": "K.G.",
   "type": "school",
   "startDate": "1992",
   "endDate": "1994",
   "primary": false
  },
  {
   "name": "X Digital Group",
   "title": "Senior Mobile Developer / Team Lead",
   "type": "work",
   "startDate": "2012",
   "primary": true
  },
  {
   "name": "X Digital Group",
   "title": "Interactive Touch Screen and Mobile Core Developer",
   "type": "work",
   "startDate": "2012",
   "endDate": "2013",
   "primary": false
  },
  {
   "name": "Health-Insights",
   "title": "Android / iOS / C#.NET Developer",
   "type": "work",
   "startDate": "2011",
   "endDate": "2012",
   "primary": false
  }
 ],
 "placesLived": [
  {
   "value": "Alexandria, Egypt",
   "primary": true
  },
  {
   "value": "KSA"
  },
  {
   "value": "Lybia"
  },
  {
   "value": "Egypt"
  },
  {
   "value": "Qatar"
  }
 ],
 "isPlusUser": true,
 "language": "en",
 "ageRange": {
  "min": 21
 },
 "circledByCount": 707,
 "verified": false,
 "cover": {
  "layout": "banner",
  "coverPhoto": {
   "url": "https://lh3.googleusercontent.com/-kp8ALVVOa1o/U-Bo2sjE9GI/AAAAAAAFkaA/PWKY2q2e9lY/s630-fcrop64=1,0000208effb2f94e/_MG_0344-SMILE.jpg",
   "height": 626,
   "width": 940
  },
  "coverInfo": {
   "topImageOffset": -294,
   "leftImageOffset": 0
  }
 }
}

在我粘贴的json中搜索"id": "104183538590490028018"

打开这个答案中的所有链接,因为它们对你有好处。

还请记住,当请求配置文件使用id作为我,因为您将没有登录用户配置文件

票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27144935

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档