我是ASP.NET vNext的新手,我没有找到如何配置Google OAuth。在ASP.NET 5中的Google OAuth MVC 6
我已经取消注释Startup.cs行:
app.UseGoogleAuthentication();
但是,在我应该怎么配置呢?我试图复制模式:
services.Configure<MicrosoftAccountAuthenticationOptions>(options =>
{
options.ClientId = Configuration["Authentication:MicrosoftAccount:ClientId"];
options.ClientSecret = Configuration["Authentication:MicrosoftAccount:ClientSecret"];
});
但
services.Configure<GoogleOAuth2AuthenticationOptions>
无法识别,即使依赖存在于project.json:
"Microsoft.AspNet.Authentication.Google": "1.0.0-beta5",
我缺少什么?