refactoring
parent
3b2c485298
commit
8b9e064881
|
@ -7,7 +7,6 @@ using Netmash.Extensions.Swagger;
|
|||
using Netmash.Extensions.Swagger.Constants;
|
||||
using Netmash.Security.Authentication.Identity;
|
||||
using NetworkResurrector.Agent.Application;
|
||||
using Newtonsoft.Json;
|
||||
using System.Reflection;
|
||||
|
||||
namespace NetworkResurrector.Agent.Extensions
|
||||
|
@ -16,8 +15,7 @@ namespace NetworkResurrector.Agent.Extensions
|
|||
{
|
||||
public static void ConfigureServices(this IServiceCollection services, IConfiguration configuration)
|
||||
{
|
||||
services.AddControllers()
|
||||
.AddNewtonsoftJson(o => o.SerializerSettings.DateTimeZoneHandling = DateTimeZoneHandling.Utc);
|
||||
services.AddControllers();
|
||||
|
||||
// Add basic authentication
|
||||
services.AddIdentityAuthentication(configuration.GetSection("IdentityServer")["BaseAddress"]);
|
||||
|
|
Loading…
Reference in New Issue