Use new auth API

This commit is contained in:
Hao Kung 2017-06-30 13:49:29 -07:00 committed by Hao Kung
parent 1f02768ddd
commit 2a57171ea8
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ namespace RazorPagesApp
public void ConfigureServices(IServiceCollection services)
{
var builder = services.AddMvc();
services.AddCookieAuthentication(options => options.LoginPath = "/Login");
services.AddAuthentication().AddCookie(options => options.LoginPath = "/Login");
ConfigureMvc(builder);
}