c# - GoogleOAuth2AuthenticationOptions google+ API 关闭

标签 c# asp.net-mvc

我们本周收到一封电子邮件,通知我们 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/

相关文章:

c# - 使用 ASP.NET MVC 捆绑和缩小时出现奇怪的 JavaScript 错误

c# datagridview 使用 FullRowSelect 双击行

c# - 如何在浏览器中下载和显示excel电子表格

c# - ASP.NET MVC Excel 导出文件格式错误

javascript - 如何将默认的 Scripts 文件夹导入到空白的 mvc4 项目中

javascript - 将日期选择器的值传递给函数

c# - 传递空值时替代 .Equals()

c# - 使用 JavaScript 获取选中的 RadioButtons

c# - 查找字符串中字符的索引

c# - MVC5 中模拟 ConfirmEmailAsync 和其他 UserManager 方法的接口(interface)