Skip to content

Commit

Permalink
Removed Access info
Browse files Browse the repository at this point in the history
  • Loading branch information
Timaqt authored and Timaqt committed Nov 28, 2024
1 parent 99cdfcd commit 7cfa708
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/Controllers/DashboardController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public async Task<ActionResult<CalendarSchedule>> 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");
}
}

Expand Down
2 changes: 1 addition & 1 deletion pcss-client/Clients/JudicialCalendarsServicesClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public async Task<ICollection<JudicialCalendar>> 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();
Expand Down
2 changes: 1 addition & 1 deletion pcss-client/Clients/PCSSLocationsServicesClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public async Task<ICollection<PCSSLocation>> 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();
Expand Down

0 comments on commit 7cfa708

Please sign in to comment.