【发布时间】: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