Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #44 from DuendeSoftware/net8
Browse files Browse the repository at this point in the history
Support for .NET 8
  • Loading branch information
josephdecock authored Nov 28, 2023
2 parents c2aa94b + 29e59eb commit bc89429
Show file tree
Hide file tree
Showing 32 changed files with 391 additions and 175 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ jobs:
with:
dotnet-version: |
6.0.x
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
8.0.x
- run: dotnet --info

Expand Down
34 changes: 34 additions & 0 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<Project>
<PropertyGroup Condition=" '$(TargetFramework)' == 'net8.0'">
<FrameworkVersion>8.0.0</FrameworkVersion>
<ExtensionsVersion>8.0.0</ExtensionsVersion>
<WilsonVersion>7.0.3</WilsonVersion>
<IdentityServerVersion>7.0.0-preview.2</IdentityServerVersion>
</PropertyGroup>

<PropertyGroup Condition=" '$(TargetFramework)' == 'net6.0'">
<FrameworkVersion>6.0.0</FrameworkVersion>
<ExtensionsVersion>6.0.0</ExtensionsVersion>
<WilsonVersion>6.15.0</WilsonVersion>
<IdentityServerVersion>6.3.6</IdentityServerVersion>
</PropertyGroup>


<ItemGroup>
<!-- ASP.NET -->
<PackageReference Update="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="$(FrameworkVersion)" />
<PackageReference Update="Microsoft.AspNetCore.Authentication.JwtBearer" Version="$(FrameworkVersion)" />
<PackageReference Update="Microsoft.AspNetCore.TestHost" Version="$(FrameworkVersion)" />

<!-- Microsoft Extensions -->
<PackageReference Update="Microsoft.Extensions.Caching.Abstractions" Version="$(ExtensionsVersion)" />
<PackageReference Update="Microsoft.Extensions.Logging.Abstractions" Version="$(ExtensionsVersion)" />
<PackageReference Update="Microsoft.Extensions.Options" Version="$(ExtensionsVersion)" />
<PackageReference Update="Microsoft.Extensions.Http" Version="$(ExtensionsVersion)" />
<PackageReference Update="Microsoft.Extensions.DependencyInjection.Abstractions" Version="$(ExtensionsVersion)" />

<!-- Wilson -->
<PackageReference Update="System.IdentityModel.Tokens.Jwt" Version="$(WilsonVersion)" />

</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion build/build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "6.0.100",
"version": "8.0.100",
"rollForward": "latestMajor",
"allowPrerelease": false
}
Expand Down
6 changes: 3 additions & 3 deletions samples/BlazorServer/BlazorServer.csproj
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<UserSecretsId>aspnet-BlazorServer-AF0F1063-736A-4F96-BAF4-B06CE5D44F0D</UserSecretsId>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="6.0.0" />
<PackageReference Include="Serilog.AspNetCore" Version="5.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="8.0.0" />
<PackageReference Include="Serilog.AspNetCore" Version="8.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
10 changes: 5 additions & 5 deletions samples/Web/Controllers/HomeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public async Task<IActionResult> CallApiAsUserManual()
var client = _httpClientFactory.CreateClient();
client.SetToken(token.AccessTokenType!, token.AccessToken!);

var response = await client.GetStringAsync("https://demo.duendesoftware.com/api/test");
var response = await client.GetStringAsync($"{Startup.ApiBaseUrl}/test");
ViewBag.Json = PrettyPrint(response);

return View("CallApi");
Expand All @@ -45,7 +45,7 @@ public async Task<IActionResult> CallApiAsUserExtensionMethod()
var client = _httpClientFactory.CreateClient();
client.SetToken(token.AccessTokenType!, token.AccessToken!);

var response = await client.GetStringAsync("https://demo.duendesoftware.com/api/test");
var response = await client.GetStringAsync($"{Startup.ApiBaseUrl}/test");
ViewBag.Json = PrettyPrint(response);

return View("CallApi");
Expand Down Expand Up @@ -76,7 +76,7 @@ public async Task<IActionResult> CallApiAsUserResourceIndicator()
var client = _httpClientFactory.CreateClient();
client.SetToken(token.AccessTokenType!, token.AccessToken!);

var response = await client.GetStringAsync("https://demo.duendesoftware.com/api/test");
var response = await client.GetStringAsync($"{Startup.ApiBaseUrl}/test");

ViewBag.Json = PrettyPrint(response);
return View("CallApi");
Expand All @@ -90,7 +90,7 @@ public async Task<IActionResult> CallApiAsClientExtensionMethod()
var client = _httpClientFactory.CreateClient();
client.SetToken(token.AccessTokenType!, token.AccessToken!);

var response = await client.GetStringAsync("https://demo.duendesoftware.com/api/test");
var response = await client.GetStringAsync($"{Startup.ApiBaseUrl}/test");

ViewBag.Json = PrettyPrint(response);
return View("CallApi");
Expand All @@ -103,7 +103,7 @@ public async Task<IActionResult> CallApiAsClientResourceIndicator()
var client = _httpClientFactory.CreateClient();
client.SetToken(token.AccessTokenType!, token.AccessToken!);

var response = await client.GetStringAsync("https://demo.duendesoftware.com/api/test");
var response = await client.GetStringAsync($"{Startup.ApiBaseUrl}/test");

ViewBag.Json = PrettyPrint(response);
return View("CallApi");
Expand Down
19 changes: 11 additions & 8 deletions samples/Web/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ namespace Web;

public static class Startup
{
public const bool UseDPoP = false;

public const string ApiBaseUrl = UseDPoP ?
"https://demo.duendesoftware.com/api/dpop/" :
"https://demo.duendesoftware.com/api/";

internal static WebApplication ConfigureServices(this WebApplicationBuilder builder)
{
builder.Services.AddControllersWithViews();
Expand Down Expand Up @@ -74,32 +80,29 @@ internal static WebApplication ConfigureServices(this WebApplicationBuilder buil

builder.Services.AddOpenIdConnectAccessTokenManagement(options =>
{
// if you uncomment this line, then be sure to change the URL for the "user_client"
// to include "dpop/" at the end, since that's the DPoP enabled API path
//options.DPoPJsonWebKey = jwk;
options.DPoPJsonWebKey = UseDPoP ? jwk : null; ;
});

// registers HTTP client that uses the managed user access token
builder.Services.AddUserAccessTokenHttpClient("user_client",
configureClient: client => {
client.BaseAddress = new Uri("https://demo.duendesoftware.com/api/");
//client.BaseAddress = new Uri("https://demo.duendesoftware.com/api/dpop/");
client.BaseAddress = new Uri(ApiBaseUrl);
});

// registers HTTP client that uses the managed client access token
builder.Services.AddClientAccessTokenHttpClient("client",
configureClient: client => { client.BaseAddress = new Uri("https://demo.duendesoftware.com/api/"); });
configureClient: client => { client.BaseAddress = new Uri(ApiBaseUrl); });

// registers a typed HTTP client with token management support
builder.Services.AddHttpClient<TypedUserClient>(client =>
{
client.BaseAddress = new Uri("https://demo.duendesoftware.com/api/");
client.BaseAddress = new Uri(ApiBaseUrl);
})
.AddUserAccessTokenHandler();

builder.Services.AddHttpClient<TypedClientClient>(client =>
{
client.BaseAddress = new Uri("https://demo.duendesoftware.com/api/");
client.BaseAddress = new Uri(ApiBaseUrl);
})
.AddClientAccessTokenHandler();

Expand Down
22 changes: 13 additions & 9 deletions samples/Web/Views/Home/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@

<h3>Call API as Client</h3>

<a href="./home/CallApiAsClientExtensionMethod">Extension method</a>
|
<a href="./home/CallApiAsClientFactory">HTTP client factory</a>
|
<a href="./home/CallApiAsClientFactoryTyped">HTTP client factory (typed)</a>
|
<a href="./home/CallApiAsClientResourceIndicator">Use resource indicator</a>


@if (!Startup.UseDPoP)
{
<a asp-controller="Home" asp-action = "CallApiAsClientExtensionMethod" > Extension method </a >
@("|")
}
<a asp-controller="Home" asp-action="CallApiAsClientFactory">HTTP client factory</a>
@("|")
<a asp-controller="Home" asp-action="CallApiAsClientFactoryTyped">HTTP client factory (typed)</a>
@if (!Startup.UseDPoP)
{
@("|")
<a asp-controller="Home" asp-action="CallApiAsClientResourceIndicator">Use resource indicator</a>
}
44 changes: 28 additions & 16 deletions samples/Web/Views/Home/Secure.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,37 @@

<h3>Call API as User</h3>

<a href="./CallApiAsUserManual">Manual</a>
|
<a href="./CallApiAsUserExtensionMethod">Extension method</a>
|
<a href="./CallApiAsUserFactory">HTTP client factory</a>
|
<a href="./CallApiAsUserFactoryTyped">HTTP client factory (typed)</a>
|
<a href="./CallApiAsUserResourceIndicator">Use resource indicator</a>
@if (!Startup.UseDPoP)
{
<a asp-controller="Home" asp-action="CallApiAsUserManual">Manual</a>
@("|")
<a asp-controller="Home" asp-action="CallApiAsUserExtensionMethod"> Extension method </a>
@("|")
}
<a asp-controller="Home" asp-action="CallApiAsUserFactory">HTTP client factory</a>
@("|")
<a asp-controller="Home" asp-action="CallApiAsUserFactoryTyped">HTTP client factory (typed)</a>
@if (!Startup.UseDPoP)
{
@("|")
<a asp-controller="Home" asp-action="CallApiAsUserResourceIndicator">Use resource indicator</a>
}

<h3>Call API as Client</h3>

<a href="./CallApiAsClientExtensionMethod">Extension method</a>
|
<a href="./CallApiAsClientFactory">HTTP client factory</a>
|
<a href="./CallApiAsClientFactoryTypes">HTTP client factory (typed)</a>
|
<a href="./CallApiAsClientResourceIndicator">Use resource indicator</a>
@if (!Startup.UseDPoP)
{
<a asp-controller="Home" asp-action="CallApiAsClientExtensionMethod"> Extension method </a>
@("|")
}
<a asp-controller="Home" asp-action="CallApiAsClientFactory">HTTP client factory</a>
@("|")
<a asp-controller="Home" asp-action="CallApiAsClientFactoryTyped">HTTP client factory (typed)</a>
@if (!Startup.UseDPoP)
{
@("|")
<a asp-controller="Home" asp-action="CallApiAsClientResourceIndicator">Use resource indicator</a>
}

<h2>Claims</h2>

Expand Down
6 changes: 3 additions & 3 deletions samples/Web/Web.csproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="6.0.0" />
<PackageReference Include="Serilog.AspNetCore" Version="6.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="8.0.0" />
<PackageReference Include="Serilog.AspNetCore" Version="8.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
15 changes: 14 additions & 1 deletion samples/WebJarJwt/ClientAssertionService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,20 @@ public class ClientAssertionService : IClientAssertionService
private readonly IOpenIdConnectConfigurationService _configurationService;

private static string RsaKey =
"{'d':'GmiaucNIzdvsEzGjZjd43SDToy1pz-Ph-shsOUXXh-dsYNGftITGerp8bO1iryXh_zUEo8oDK3r1y4klTonQ6bLsWw4ogjLPmL3yiqsoSjJa1G2Ymh_RY_sFZLLXAcrmpbzdWIAkgkHSZTaliL6g57vA7gxvd8L4s82wgGer_JmURI0ECbaCg98JVS0Srtf9GeTRHoX4foLWKc1Vq6NHthzqRMLZe-aRBNU9IMvXNd7kCcIbHCM3GTD_8cFj135nBPP2HOgC_ZXI1txsEf-djqJj8W5vaM7ViKU28IDv1gZGH3CatoysYx6jv1XJVvb2PH8RbFKbJmeyUm3Wvo-rgQ','dp':'YNjVBTCIwZD65WCht5ve06vnBLP_Po1NtL_4lkholmPzJ5jbLYBU8f5foNp8DVJBdFQW7wcLmx85-NC5Pl1ZeyA-Ecbw4fDraa5Z4wUKlF0LT6VV79rfOF19y8kwf6MigyrDqMLcH_CRnRGg5NfD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PcccnBeOcX7vc21pozibIdmZJKqXNsL1Ibx5Nkx1F1jLnekJAmdaACDjYRLL_6n3W4wUp19UvzB1lGtXcJKLLkqB6YDiZNu16OSiSprfmrRXvYmvD8m6Fnl5aetgKw",
"p":"7enorp9Pm9XSHaCvQyENcvdU99WCPbnp8vc0KnY_0g9UdX4ZDH07JwKu6DQEwfmUA1qspC-e_KFWTl3x0-I2eJRnHjLOoLrTjrVSBRhBMGEH5PvtZTTThnIY2LReH-6EhceGvcsJ_MhNDUEZLykiH1OnKhmRuvSdhi8oiETqtPE",
"q":"0CBLGi_kRPLqI8yfVkpBbA9zkCAshgrWWn9hsq6a7Zl2LcLaLBRUxH0q1jWnXgeJh9o5v8sYGXwhbrmuypw7kJ0uA3OgEzSsNvX5Ay3R9sNel-3Mqm8Me5OfWWvmTEBOci8RwHstdR-7b9ZT13jk-dsZI7OlV_uBja1ny9Nz9ts",
"qi":"pG6J4dcUDrDndMxa-ee1yG4KjZqqyCQcmPAfqklI2LmnpRIjcK78scclvpboI3JQyg6RCEKVMwAhVtQM6cBcIO3JrHgqeYDblp5wXHjto70HVW6Z8kBruNx1AH9E8LzNvSRL-JVTFzBkJuNgzKQfD0G77tQRgJ-Ri7qu3_9o1M4"
}
""";

private static SigningCredentials Credential = new(new JsonWebKey(RsaKey), "RS256");

Expand Down
6 changes: 3 additions & 3 deletions samples/WebJarJwt/WebJarJwt.csproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="6.0.0" />
<PackageReference Include="Serilog.AspNetCore" Version="6.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="8.0.0" />
<PackageReference Include="Serilog.AspNetCore" Version="8.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
15 changes: 14 additions & 1 deletion samples/Worker/ClientAssertionService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,20 @@ public class ClientAssertionService : IClientAssertionService
private readonly IOptionsSnapshot<ClientCredentialsClient> _options;

private static string RsaKey =
"{'d':'GmiaucNIzdvsEzGjZjd43SDToy1pz-Ph-shsOUXXh-dsYNGftITGerp8bO1iryXh_zUEo8oDK3r1y4klTonQ6bLsWw4ogjLPmL3yiqsoSjJa1G2Ymh_RY_sFZLLXAcrmpbzdWIAkgkHSZTaliL6g57vA7gxvd8L4s82wgGer_JmURI0ECbaCg98JVS0Srtf9GeTRHoX4foLWKc1Vq6NHthzqRMLZe-aRBNU9IMvXNd7kCcIbHCM3GTD_8cFj135nBPP2HOgC_ZXI1txsEf-djqJj8W5vaM7ViKU28IDv1gZGH3CatoysYx6jv1XJVvb2PH8RbFKbJmeyUm3Wvo-rgQ','dp':'YNjVBTCIwZD65WCht5ve06vnBLP_Po1NtL_4lkholmPzJ5jbLYBU8f5foNp8DVJBdFQW7wcLmx85-NC5Pl1ZeyA-Ecbw4fDraa5Z4wUKlF0LT6VV79rfOF19y8kwf6MigyrDqMLcH_CRnRGg5NfDsijlZXffINGuxg6wWzhiqqE','dq':'LfMDQbvTFNngkZjKkN2CBh5_MBG6Yrmfy4kWA8IC2HQqID5FtreiY2MTAwoDcoINfh3S5CItpuq94tlB2t-VUv8wunhbngHiB5xUprwGAAnwJ3DL39D2m43i_3YP-UO1TgZQUAOh7Jrd4foatpatTvBtY3F1DrCrUKE5Kkn770M','e':'AQAB','kid':'ZzAjSnraU3bkWGnnAqLapYGpTyNfLbjbzgAPbbW2GEA','kty':'RSA','n':'wWwQFtSzeRjjerpEM5Rmqz_DsNaZ9S1Bw6UbZkDLowuuTCjBWUax0vBMMxdy6XjEEK4Oq9lKMvx9JzjmeJf1knoqSNrox3Ka0rnxXpNAz6sATvme8p9mTXyp0cX4lF4U2J54xa2_S9NF5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sNvX5Ay3R9sNel-3Mqm8Me5OfWWvmTEBOci8RwHstdR-7b9ZT13jk-dsZI7OlV_uBja1ny9Nz9ts",
"qi":"pG6J4dcUDrDndMxa-ee1yG4KjZqqyCQcmPAfqklI2LmnpRIjcK78scclvpboI3JQyg6RCEKVMwAhVtQM6cBcIO3JrHgqeYDblp5wXHjto70HVW6Z8kBruNx1AH9E8LzNvSRL-JVTFzBkJuNgzKQfD0G77tQRgJ-Ri7qu3_9o1M4"
}
""";

private static SigningCredentials Credential = new (new JsonWebKey(RsaKey), "RS256");

Expand Down
6 changes: 3 additions & 3 deletions samples/Worker/Worker.csproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk.Worker">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Serilog.AspNetCore" Version="6.0.0" />
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="6.21.0" />
<PackageReference Include="Serilog.AspNetCore" Version="8.0.0" />
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="7.0.3" />
</ItemGroup>

<ItemGroup>
Expand Down
Loading

0 comments on commit bc89429

Please sign in to comment.