C# GoogleOAuth2AuthenticationOptions谷歌&x2B;API关闭
本周我们收到一封电子邮件,通知我们谷歌将于2019年3月7日关闭Google+API。我们的Web应用程序在电子邮件中被特别命名,并暗示我们正在使用Google+API。我们的身份验证是使用Microsoft.Owin.Security.Google完成的,配置如下示例所示:C# GoogleOAuth2AuthenticationOptions谷歌&x2B;API关闭,c#,asp.net-mvc,C#,Asp.net Mvc,本周我们收到一封电子邮件,通知我们谷歌将于2019年3月7日关闭Google+API。我们的Web应用程序在电子邮件中被特别命名,并暗示我们正在使用Google+API。我们的身份验证是使用Microsoft.Owin.Security.Google完成的,配置如下示例所示: app.UseGoogleAuthentication(new GoogleOAuth2AuthenticationOptions() { ClientId = "x
app.UseGoogleAuthentication(new GoogleOAuth2AuthenticationOptions()
{
ClientId = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com",
ClientSecret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
});
我们尝试在开发者控制台中禁用Google+API,以查看它是否影响我们的web应用程序身份验证,并且身份验证确实失败,因此使用此方法似乎确实使用Google+API
请任何人就如何升级我们的应用程序以使用新的谷歌登录认证提供任何建议,因为现在看来我们的应用程序很可能会在谷歌最早于2019年1月28日关闭此API后立即停止工作。这不会给我们很多时间来更改身份验证
非常感谢。我可以确认Chris Ross(Tratcher)在:上发布的解决方案解决了这个问题。我可以禁用Google+API,一切正常。github上有一个相关问题,Microsoft.Owin.Security.Google的更新正在跟踪中,Chris Ross(Tratcher)发布了一个4.0的解决方案,但说它也应该适用于3.1。我已经尝试了Chris Ross(Tratcher)发布的解决方案并且可以确认它确实有效。谢谢