Use new auth API
This commit is contained in:
parent
1f02768ddd
commit
2a57171ea8
|
|
@ -10,7 +10,7 @@ namespace RazorPagesApp
|
||||||
public void ConfigureServices(IServiceCollection services)
|
public void ConfigureServices(IServiceCollection services)
|
||||||
{
|
{
|
||||||
var builder = services.AddMvc();
|
var builder = services.AddMvc();
|
||||||
services.AddCookieAuthentication(options => options.LoginPath = "/Login");
|
services.AddAuthentication().AddCookie(options => options.LoginPath = "/Login");
|
||||||
ConfigureMvc(builder);
|
ConfigureMvc(builder);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue