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