From 7cfa708bcc14eabcab822c3dee89ebbd4a6d7b88 Mon Sep 17 00:00:00 2001 From: Timaqt Date: Thu, 28 Nov 2024 15:33:24 -0800 Subject: [PATCH] Removed Access info --- api/Controllers/DashboardController.cs | 2 +- pcss-client/Clients/JudicialCalendarsServicesClient.cs | 2 +- pcss-client/Clients/PCSSLocationsServicesClient.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/Controllers/DashboardController.cs b/api/Controllers/DashboardController.cs index 9ea8b23f..6b1dd57d 100644 --- a/api/Controllers/DashboardController.cs +++ b/api/Controllers/DashboardController.cs @@ -135,7 +135,7 @@ public async Task> GetMonthlySchedule(int year, i catch (Exception ex) { // Log the exception - return StatusCode(500, "Internal server error " + ex.InnerException.ToString()); + return StatusCode(500, "Internal server error"); } } diff --git a/pcss-client/Clients/JudicialCalendarsServicesClient.cs b/pcss-client/Clients/JudicialCalendarsServicesClient.cs index c5a19d28..5ea792b0 100644 --- a/pcss-client/Clients/JudicialCalendarsServicesClient.cs +++ b/pcss-client/Clients/JudicialCalendarsServicesClient.cs @@ -28,7 +28,7 @@ public async Task> JudicialCalendarsGetAsync(strin { var requestUrl = $"https://wsgw.test.jag.gov.bc.ca/courts/catsAPI/api/v2/calendar/judges?locationIds={locationId}&startDate={startDate:dd-MMM-yyyy}&endDate={endDate:dd-MMM-yyyy}"; var request = new HttpRequestMessage(HttpMethod.Get, requestUrl); - request.Headers.Add("Authorization", "Basic " + Convert.ToBase64String(System.Text.Encoding.ASCII.GetBytes("CATS_API:4R,;UTGFm6ff"))); + request.Headers.Add("Authorization", "Basic " + Convert.ToBase64String(System.Text.Encoding.ASCII.GetBytes("Login:Password"))); var response = await _httpClient.SendAsync(request, cancellationToken); response.EnsureSuccessStatusCode(); diff --git a/pcss-client/Clients/PCSSLocationsServicesClient.cs b/pcss-client/Clients/PCSSLocationsServicesClient.cs index 00cc0243..a67a66c7 100644 --- a/pcss-client/Clients/PCSSLocationsServicesClient.cs +++ b/pcss-client/Clients/PCSSLocationsServicesClient.cs @@ -29,7 +29,7 @@ public async Task> LocationsGetAsync(System.Threading. var requestUrl = "https://wsgw.test.jag.gov.bc.ca/courts/catsAPI/api/locations/"; var request = new HttpRequestMessage(HttpMethod.Get, requestUrl); - request.Headers.Add("Authorization", "Basic " + Convert.ToBase64String(System.Text.Encoding.ASCII.GetBytes("CATS_API:4R,;UTGFm6ff"))); + request.Headers.Add("Authorization", "Basic " + Convert.ToBase64String(System.Text.Encoding.ASCII.GetBytes("Login:Password"))); var response = await _httpClient.SendAsync(request, cancellationToken); response.EnsureSuccessStatusCode();