“Google 帐户的 OpenID2 将于 2015 年 4 月 20 日停用”。我需要担心吗?

Posted

技术标签:

【中文标题】“Google 帐户的 OpenID2 将于 2015 年 4 月 20 日停用”。我需要担心吗?【英文标题】:"OpenID2 for Google accounts is going away on April 20, 2015". Do I need to worry? 【发布时间】:2015-01-24 12:46:16 【问题描述】:

我正在使用 ASP.NET 开发网站,并使用 Oauth 功能将用户注册到我的网站。我从 Visual Studio 2013 的 nuget 包下载了 DontNetOpenOauth。 到目前为止,我实现了 facebook 身份验证。我希望也使用谷歌身份验证。但是当我去那里的网站时,它会这么说。

“Google 帐户的 OpenID2 将于 2015 年 4 月 20 日停用。”

当我转到此警告的详细信息页面时,它会显示

“某些应用程序和网站在您登录时使用 OpenID 2.0 进行身份验证,并访问您授予他们访问权限的数据。从 2015 年 4 月 20 日开始,OpenID 2.0 将不再适用于谷歌帐户。 如果您看到将您带到此页面的警告,则表示您正在使用 OpenID 2.0 的应用程序或网站,并且可能会受到此更改的影响。如需更多信息,我们建议您访问该应用程序的帮助中心,或联系其支持团队。”

这是链接。

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

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

【问题讨论】:

It seems you're confusing OAuth with OpenID. 这里是与此主题相关的a conversation。 【参考方案1】:

不,你不必担心,这只是意味着开发人员 @*** 将不得不稍微更改他们的代码,但它应该可以正常工作。

编辑:

您必须将您的代码从 OpenID 更改为 OAuth 2,使用 http://developers.google.com/accounts/docs/OAuth2WebServer 和最小范围 developers.google.com/+/api/oauth#login-scopes 是 profile 并从该配置文件中您可以确定哪个用户就是那个并登录他们

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

我的建议是使用 ID 可以找到使用此document


 "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,因为您不会登录用户配置文件

【讨论】:

我不明白 Shereef Marzouk。我的网站和***之间有什么联系? :) 我以为你在 SOF 上得到了这个,因为我找到了你的文章,因为 SOF 也得到了它的开放 ID,那么抱歉,你必须更改你的代码并使用 OAuth developers.google.com/accounts/docs/OAuth2WebServer 以最小范围developers.google.com/+/api/oauth#login-scopes 这是个人资料,您可以从该个人资料中确定是哪个用户并将其登录 抱歉给您带来了困惑

以上是关于“Google 帐户的 OpenID2 将于 2015 年 4 月 20 日停用”。我需要担心吗?的主要内容,如果未能解决你的问题,请参考以下文章