From a00e6b7aec2095646f4a7898792c385f1cca2a96 Mon Sep 17 00:00:00 2001 From: Ronaldo Macapobre Date: Wed, 6 Nov 2024 00:12:43 +0000 Subject: [PATCH] Remove auth for location service --- api/Infrastructure/ServiceCollectionExtensions.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/Infrastructure/ServiceCollectionExtensions.cs b/api/Infrastructure/ServiceCollectionExtensions.cs index eafaa058..6b1a6720 100644 --- a/api/Infrastructure/ServiceCollectionExtensions.cs +++ b/api/Infrastructure/ServiceCollectionExtensions.cs @@ -57,9 +57,9 @@ public static IServiceCollection AddHttpClientsAndScvServices(this IServiceColle services.AddHttpClient(client => { - client.DefaultRequestHeaders.Authorization = new BasicAuthenticationHeaderValue( - configuration.GetNonEmptyValue("LocationServicesClient:Username"), - configuration.GetNonEmptyValue("LocationServicesClient:Password")); + // client.DefaultRequestHeaders.Authorization = new BasicAuthenticationHeaderValue( + // configuration.GetNonEmptyValue("LocationServicesClient:Username"), + // configuration.GetNonEmptyValue("LocationServicesClient:Password")); client.BaseAddress = new Uri(configuration.GetNonEmptyValue("LocationServicesClient:Url").EnsureEndingForwardSlash()); }).AddHttpMessageHandler();