微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

asp.net – “2015年4月20日Google帐户的OpenID2已经消失”.我需要担心吗?

我正在使用ASP.NET开发一个网站,我使用Oauth功能用户注册到我的网站.我从Visual Studio 2013的nuget软件包中下载了DontNetopenOauth.
到目前为止,我实现了Facebook身份验证.我也希望使用谷歌认证.但是当我去那里的网站时,它说.

“Google帐户的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认证过程.
这是什么警告讯息?我需要担心吗?我需要做任何更改,还是需要安装任何软件包?

解决方法

不,你不需要担心,这只意味着开发人员@ Stackoverflow将不得不改变他们的代码一点,但它应该工作正常.

编辑:

您必须将代码从OpenID更改为OAuth 2,并使用最少的scope.google.com/ / api / oauth#login-scopes,这是配置文件,并从该配置文件中可以确定哪个用户是这样,并将其登录

您不必保存返回的令牌,因为您将不再需要它,直到下次登录,您将自动递交新的或相同的令牌由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","label": "shereefz"
  },{
   "value": "http://www.plaxo.com/profile/showPublic/Shereef","label": "shereef"
  },{
   "value": "http://cid-c74ed9e76d675051.profile.live.com","label": "@&#$%&@#%^$@live.com"
  },{
   "value": "http://www.plaxo.com/profile/showPublic/null","label": "null"
  },{
   "value": "http://pulse.yahoo.com/_VMZ2QYN3AWG57HS5IUW4T2KHRM","label": "Shereef Marzouk"
  },{
   "value": "http://about.me/Shereef","label": "About.me"
  },{
   "value": "http://www.youtube.com/user/Shereefz",{
   "value": "http://www.myspace.com/Shereef",{
   "value": "http://profiles.google.com/17F648F7-5C7D-42D4-A40F-CAC12280C712","label": "SheefoPad"
  },{
   "value": "https://profiles.google.com/104183538590490028018/buzz","type": "contributor","label": "Buzz"
  },{
   "value": "https://developers.google.com/groups/chapter/103706763079402130148/","label": "GDG Alexandria (Google Developers Group Alexandria)"
  },{
   "value": "http://www.shereef.net",{
   "value": "http://shereef.net/resume","type": "other","label": "Resume"
  },{
   "value": "http://shereef.net/blog","label": "Blogger"
  },{
   "value": "http://about.me/shereef",{
   "value": "http://pulse.yahoo.com/sheefoz","label": "sheefoz"
  },{
   "value": "http://facebook.com/Shereefz",{
   "value": "http://www.linkedin.com/in/shereef","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","startDate": "1994","endDate": "2004",{
   "name": "Sidi Gaber Language School","title": "K.G.","startDate": "1992","endDate": "1994",{
   "name": "X Digital Group","title": "Senior Mobile Developer / Team Lead","type": "work","startDate": "2012","primary": true
  },"title": "Interactive Touch Screen and Mobile Core Developer","endDate": "2013",{
   "name": "Health-Insights","title": "Android / iOS / C#.NET Developer","startDate": "2011","endDate": "2012","primary": false
  }
 ],"placesLived": [
  {
   "value": "Alexandria,Egypt",{
   "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
  }
 }
}

搜索“id”:“104183538590490028018”在我粘在这里的json

附:打开这个答案的所有链接,因为他们会使你受益.

还要记住,请求配置文件使用id作为我,因为您不会在用户配置文件登录

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


这篇文章主要讲解了“WPF如何实现带筛选功能的DataGrid”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“WPF...
本篇内容介绍了“基于WPF如何实现3D画廊动画效果”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这...
Some samples are below for ASP.Net web form controls:(from http://www.visualize.uk.com/resources/asp
问题描述: 对于未定义为 System.String 的列,唯一有效的值是(引发异常)。 For columns not defined as System.String, the only vali
最近用到了CalendarExtender,结果不知道为什么发生了错位,如图在Google和百度上找了很久,中文的文章里面似乎只提到了如何本地化(就是显示中文的月份)以及怎么解决被下拉框挡住的问题,谈
ASP.NET 2.0 page lifecyle ASP.NET 2.0 event sequence changed a lot since 1.1. Here is the order: App
静态声明: &#39; Style=&quot;position: relative&quot; AppendDataBoundItems=&quot;True&quot;&gt; (无 或 空 或
以下内容是从网络上搜集资料,然后整理而来的。不当之处,请不吝指教。(The following were from network, and edited by myself. Thanks in a
Imports System Imports System.Reflection Namespace DotNetNuke &#39;*********************************
Ok so you have all seen them: “8 million tools for web development”, “5 gagillion tools that if you