Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/32.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net &引用;谷歌账户的OpenID2将于2015年4月20日到期;。我需要担心吗?_Asp.net_Oauth - Fatal编程技术网

Asp.net &引用;谷歌账户的OpenID2将于2015年4月20日到期;。我需要担心吗?

Asp.net &引用;谷歌账户的OpenID2将于2015年4月20日到期;。我需要担心吗?,asp.net,oauth,Asp.net,Oauth,我正在使用ASP.NET开发一个网站,我使用Oauth功能向我的网站注册用户。我从Visual studio 2013的nuget软件包下载了DontNetOpenOauth。 到目前为止,我实现了facebook身份验证。我也希望使用谷歌认证。但当我去那个网站的时候,它说 “针对谷歌账户的OpenID2将于2015年4月20日退出。” 当我转到此警告的详细信息页面时,它会显示 “一些应用程序和网站在您登录时使用OpenID 2.0进行身份验证,并访问您授予其访问权限的数据。从2015年4月20

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

“针对谷歌账户的OpenID2将于2015年4月20日退出。”

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

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

这里是链接

老实告诉你们,我对oauth认证过程并不熟悉。
这条警告信息是什么?我需要为此担心吗?我需要做些什么更改吗?或者我需要安装什么软件包吗?

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

编辑:

您必须将代码从OpenID更改为OAuth 2,并使用最小范围developers.google.com/+/api/OAuth#login scopes,即
profile
,从该配置文件中,您可以确定哪个用户是该用户并登录

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

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

{
“善良”:“加上人”,
“etag”:“RqKWnRU4WW46-6W3rWhLR9iFZQM/hGBwxYeYt07li9hNmxa2J7GE\u 0c”,
“昵称”:“灰盒”,
“职业”:“计算机工程师”,
“技能”:“iOS开发,Android开发”,
“生日”:“0000-09-20”,
“性别”:“男性”,
“电子邮件”:[
{
“价值”:“@^^$%@^@gmail.com”,
“类型”:“帐户”
}
],
“URL”:[
{
“值”:http://www.myspace.com/Shereef",
“类型”:“其他配置文件”,
“标签”:“谢里夫”
},
{
“值”:http://Shereefz.spaces.live.com",
“类型”:“其他配置文件”,
“标签”:“shereefz”
},
{
“值”:http://www.plaxo.com/profile/showPublic/Shereef",
“类型”:“其他配置文件”,
“标签”:“谢里夫”
},
{
“值”:http://cid-c74ed9e76d675051.profile.live.com",
“类型”:“其他配置文件”,
“标签”:“@&$%&@#%^$@live.com”
},
{
“值”:http://www.plaxo.com/profile/showPublic/null",
“类型”:“其他配置文件”,
“标签”:“空”
},
{
“值”:http://pulse.yahoo.com/_VMZ2QYN3AWG57HS5IUW4T2KHRM",
“类型”:“其他配置文件”,
“标签”:“Shereef Marzouk”
},
{
“值”:http://about.me/Shereef",
“类型”:“其他配置文件”,
“标签”:“关于我”
},
{
“值”:http://www.youtube.com/user/Shereefz",
“类型”:“其他配置文件”,
“标签”:“Shereef Marzouk”
},
{
“值”:http://www.youtube.com/user/Shereefz",
“类型”:“其他配置文件”,
“标签”:“Shereef Marzouk”
},
{
“值”:http://www.myspace.com/Shereef",
“类型”:“其他配置文件”,
“标签”:“谢里夫”
},
{
“值”:http://Shereefz.spaces.live.com",
“类型”:“其他配置文件”,
“标签”:“shereefz”
},
{
“值”:http://profiles.google.com/17F648F7-5C7D-42D4-A40F-CAC12280C712",
“类型”:“其他配置文件”,
“标签”:“羊皮垫”
},
{
“值”:http://www.youtube.com/user/Shereefz",
“类型”:“其他配置文件”,
“标签”:“Shereef Marzouk”
},
{
“值”:http://Shereefz.spaces.live.com",
“类型”:“其他配置文件”,
“标签”:“shereefz”
},
{
“值”:http://www.myspace.com/Shereef",
“类型”:“其他配置文件”,
“标签”:“谢里夫”
},
{
“值”:http://profiles.google.com/17F648F7-5C7D-42D4-A40F-CAC12280C712",
“类型”:“其他配置文件”,
“标签”:“羊皮垫”
},
{
“值”:https://profiles.google.com/104183538590490028018/buzz",
“类型”:“参与者”,
“标签”:“嗡嗡声”
},
{
“值”:https://developers.google.com/groups/chapter/103706763079402130148/",
“类型”:“参与者”,
“标签”:“GDG Alexandria(谷歌开发者集团Alexandria)”
},
{
“值”:http://www.shereef.net",
“类型”:“参与者”,
“标签”:“谢里夫”
},
{
“值”:http://shereef.net/resume",
“类型”:“其他”,
“标签”:“简历”
},
{
“值”:http://shereef.net/blog",
“类型”:“其他”,
“标签”:“博主”
},
{
“值”:http://about.me/shereef",
“类型”:“其他”,
“标签”:“关于我”
},
{
“值”:http://pulse.yahoo.com/sheefoz",
“类型”:“其他”,
“标签”:“sheefoz”
},
{
“值”:http://facebook.com/Shereefz",
“类型”:“其他”,
“标签”:“shereefz”
},
{
“值”:http://www.linkedin.com/in/shereef",
“类型”:“其他”,
“标签”:“谢里夫”
}
],
“objectType”:“person”,
“id”:“104183538590490028018”,
“displayName”:“Shereef Marzouk”,
“姓名”:{
“familyName”:“Marzouk”,
“吉文纳姆”:“谢里夫”
},
“标语”:“X Digital Group的高级移动开发者/团队负责人”,
“吹牛权利”:“XDG英雄”,
“aboutMe”:“Shereef Marzouk是一名埃及移动应用程序开发人员,他非常喜欢自己的工作,拥有多年的移动和通用开发经验,Shereef也喜欢帮助他人和分享,他还以个人公司名称Tools Era(ToolsEra)开发自由职业应用程序,谢里夫是一个有着自己文化观和政治观的埃及人,谢里夫不是典型的埃及人,也不是开发商。”,
“关系状态”:“参与”,
“url”:”https://plus.google.com/+ShereefMarzouk“,
“图像”:{
“url”:”https://lh3.googleusercontent
{
 "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
  }
 }
}