C# 正在尝试在ASP.NET中使用Google帐户进行身份验证
我试图在微软的官方指南中这样做,但没有成功…C# 正在尝试在ASP.NET中使用Google帐户进行身份验证,c#,asp.net-mvc,owin,C#,Asp.net Mvc,Owin,我试图在微软的官方指南中这样做,但没有成功… 我刚刚创建了一个干净的ASP.NET MVC身份用户项目 已为永久端口安装SSL:https://localhost:44392/ 在GoogleAPI中创建项目,获得id和密钥 文件中未注释的行:Startup.Auth.cscode并填写数据: app.UseGoogleAuthentication(new GoogleOAuth2AuthenticationOptions() { ClientId = "1111
https://localhost:44392/
Startup.Auth.cs
code并填写数据:
app.UseGoogleAuthentication(new GoogleOAuth2AuthenticationOptions()
{
ClientId = "111111111111.apps.googleusercontent.com",
ClientSecret = "11111111111",
Provider = new GoogleOAuth2AuthenticationProvider()
});
我正在尝试用谷歌帐号进行身份验证