【问题标题】:Unable to update Microsoft.Owin.Security.Google from version 2.0.0 to 4.0.0无法将 Microsoft.Owin.Security.Google 从版本 2.0.0 更新到 4.0.0
【发布时间】:2018-04-03 04:08:30
【问题描述】:

我正在尝试通过点击此链接https://www.youtube.com/watch?v=WsRyvWvo4EI&t=609s 在我的 Web-api 项目中实现外部身份验证

app.UseGoogleAuthentication(new GoogleOAuth2AuthenticationOptions() { 
                ClientId = "",
                ClientSecret=""

});

上面的代码找不到 GoogleOAuth2AuthenticationOptions 类。搜索问题似乎是我的 microsoft.owin.security.google 包没有更新。当我尝试使用 NuGet 更新它时,它无法下载显示以下错误的包:

NuGet Error while downloading the Microsoft.Owin.Security.Goolge 4.0.0

我如何更新软件包并使谷歌身份验证工作

【问题讨论】:

    标签: asp.net asp.net-web-api oauth-2.0 google-oauth


    【解决方案1】:

    你需要将你的项目 Target Framework 至少升级到.Net Framework 4.5.1

    【讨论】:

      猜你喜欢
      • 2017-10-29
      • 2016-08-08
      • 2020-04-03
      • 1970-01-01
      • 1970-01-01
      • 2022-08-19
      • 2018-12-04
      • 2023-03-19
      • 1970-01-01
      相关资源
      最近更新 更多