Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbod committed Jan 3, 2025
1 parent d1a4c8b commit a4fc7dd
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: dotnet build ./ConfidentialClientCredentialsCertificate/ConfidentialClientCredentialsCertificate.sln
- name: Build DecryptionCertificates
run: dotnet build ./DecryptionCertificates/DecryptionCertificates.sln
- name: Build DeviceFlowWeb
- name: Build ./DeviceFlowWeb/DeviceFlowWeb
run: dotnet build ./DeviceFlowWeb/DeviceFlowWeb.sln
- name: Build DownstreamApis
run: dotnet build ./DownstreamApis/DownstreamApis.sln
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ namespace ApiDecryptionCertificates.Controllers;
[Route("[controller]")]
public class WeatherForecastController : ControllerBase
{
private static readonly string[] Summaries = new[]
{
private static readonly string[] Summaries =
[
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
};
];

private readonly ILogger<WeatherForecastController> _logger;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Newtonsoft.Json.Linq;
using System.Net.Http.Headers;

namespace PortalDecryptionCertificates;
namespace PortalDecryptionCertificates.CallApi;

public class ApiService
{
Expand All @@ -29,7 +29,7 @@ public async Task<JArray> GetApiDataAsync()
var uri = _configuration["CallApi:ApiBaseAddress"];
if (uri == null) throw new ArgumentNullException(nameof(uri));

var accessToken = await _tokenAcquisition.GetAccessTokenForUserAsync(new[] { scope });
var accessToken = await _tokenAcquisition.GetAccessTokenForUserAsync([scope]);

client.BaseAddress = new Uri(uri);
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", accessToken);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Identity.Web;
using Newtonsoft.Json.Linq;
using PortalDecryptionCertificates.CallApi;

namespace PortalDecryptionCertificates.Pages;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using Microsoft.Identity.Web;
using Microsoft.Identity.Web.UI;
using Microsoft.IdentityModel.Logging;
using PortalDecryptionCertificates.CallApi;
using Serilog;

namespace PortalDecryptionCertificates;
Expand Down

0 comments on commit a4fc7dd

Please sign in to comment.