我们本周收到一封电子邮件,通知我们 Google 将于 2019 年 3 月 7 日关闭 Google+ API。我们的网络应用程序在电子邮件中特别指出,并暗示我们正在使用 Google+ API。我们的身份验证是使用按照以下示例配置的 Microsoft.Owin.Security.Google 完成的:
app.UseGoogleAuthentication(new GoogleOAuth2AuthenticationOptions()
{
ClientId = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com",
ClientSecret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
});
我们尝试在开发人员控制台中禁用 Google+ API 以查看它是否影响我们的网络应用程序身份验证,并且身份验证确实失败了,因此看起来使用此方法确实使用了 Google+ API。
任何人都可以就如何升级我们的应用程序以使用新的 Google 登录身份验证提供任何建议,因为现在看来,一旦谷歌最早从 2019 年 1 月 28 日开始关闭此 API,我们的应用程序可能会立即停止工作. 这不会给我们很多时间来更改身份验证。
非常感谢。
最佳答案
我可以确认 Chris Ross (Tracher) 在以下位置发布的解决方法:https://github.com/aspnet/AspNetKatana/issues/251#issuecomment-449587635解决了这个问题。我能够禁用 Google+ API,一切正常。
关于c# - GoogleOAuth2AuthenticationOptions google+ API 关闭,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53917543/