chore: prepare for using session in Startup
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2021-02-10 11:21:04 +01:00
parent d3671871d2
commit 649cf813ba
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -80,6 +80,7 @@ namespace pwt_0x01_ng
services.AddScoped<ISecurityApplicationService, SecurityIdentityApplicationService>();
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_3_0);
services.AddResponseCompression();
services.AddSession();
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
@ -99,6 +100,7 @@ namespace pwt_0x01_ng
app.UseRouting();
app.UseAuthentication();
app.UseAuthorization();
app.UseSession();
app.UseEndpoints(endpoints =>
{
endpoints.MapRazorPages();