Skip to content

Commit

Permalink
Comment out using the AWS_API_GATEWAY_API_KEY and AuthorizerKey until…
Browse files Browse the repository at this point in the history
… mtls has been finalized
  • Loading branch information
Ronaldo Macapobre committed Nov 20, 2024
1 parent 8c09615 commit 1b17520
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions api/Infrastructure/ServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ public static IServiceCollection AddHttpClientsAndScvServices(this IServiceColle

services.AddHttpClient<LocationServicesClient>(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());
client.DefaultRequestHeaders.Add(X_APIGW_KEY_HEADER, apigwKey);
client.DefaultRequestHeaders.Add(X_ORIGIN_VERIFY_HEADER, authorizerKey);
// client.DefaultRequestHeaders.Add(X_APIGW_KEY_HEADER, apigwKey);
// client.DefaultRequestHeaders.Add(X_ORIGIN_VERIFY_HEADER, authorizerKey);
}).AddHttpMessageHandler<TimingHandler>();

services.AddHttpClient<UserServiceClient>(client =>
Expand Down
2 changes: 1 addition & 1 deletion docker/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
version: "3.4"
services:

web:
image: "${COMPOSE_PROJECT_NAME}-web"
environment:
Expand Down Expand Up @@ -69,6 +68,7 @@ services:
- SplunkToken=${SplunkToken}
- AWS_API_GATEWAY_URL=${AWS_API_GATEWAY_URL}
- AWS_API_GATEWAY_API_KEY=${AWS_API_GATEWAY_API_KEY}
- AuthorizerKey=${AuthorizerKey}
ports:
- 5000:5000
volumes:
Expand Down

0 comments on commit 1b17520

Please sign in to comment.