chore: prepare for using session in Startup
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d3671871d2
commit
649cf813ba
|
@ -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();
|
||||
|
|
Reference in New Issue