Skip to content

Commit 465dfb3

Browse files
authored
chore(runtime): #484 update packages and runtime to dotnet 9 (#494)
1 parent 067a151 commit 465dfb3

19 files changed

Lines changed: 50 additions & 63 deletions

File tree

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "8.0.405",
3+
"version": "9.0.102",
44
"rollForward": "latestFeature"
55
}
66
}

samples/IdentityServer.ClientSample/IdentityServer.ClientSample.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<LangVersion>latest</LangVersion>
66
<Nullable>enable</Nullable>
77
<ImplicitUsings>enable</ImplicitUsings>
@@ -18,7 +18,7 @@
1818
</PropertyGroup>
1919

2020
<ItemGroup>
21-
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="8.0.10" />
21+
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="9.0.2" />
2222
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.22.0" />
2323
</ItemGroup>
2424

samples/IdentityServer.ServerSample/IdentityServer.ServerSample.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<LangVersion>latest</LangVersion>
66
<Nullable>enable</Nullable>
77
<ImplicitUsings>enable</ImplicitUsings>
@@ -19,9 +19,9 @@
1919
</PropertyGroup>
2020

2121
<ItemGroup>
22-
<PackageReference Include="Duende.IdentityServer" Version="7.0.8" />
22+
<PackageReference Include="Duende.IdentityServer" Version="7.1.0" />
2323
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.22.0" />
24-
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="8.0.10" />
24+
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="9.0.2" />
2525
<PackageReference Include="Microsoft.Extensions.Logging.ApplicationInsights" Version="2.22.0" />
2626
</ItemGroup>
2727

samples/Phone.ConsoleSample/Phone.ConsoleSample.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<LangVersion>latest</LangVersion>
66
<Nullable>enable</Nullable>
77
<ImplicitUsings>enable</ImplicitUsings>
@@ -20,9 +20,9 @@
2020
</PropertyGroup>
2121

2222
<ItemGroup>
23-
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="8.0.1" />
24-
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.1" />
25-
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="8.0.1" />
23+
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="9.0.2" />
24+
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.2" />
25+
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="9.0.2" />
2626
</ItemGroup>
2727

2828
<ItemGroup>

samples/Standalone.MvcSample/Standalone.MvcSample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<LangVersion>latest</LangVersion>
66
<Nullable>enable</Nullable>
77
<ImplicitUsings>enable</ImplicitUsings>

src/ActiveLogin.Authentication.BankId.Api/ActiveLogin.Authentication.BankId.Api.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<ItemGroup>
1515
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="all" />
16-
<PackageReference Include="System.Text.Json" Version="8.0.5" />
16+
<PackageReference Include="System.Text.Json" Version="9.0.2" />
1717
</ItemGroup>
1818

1919
<ItemGroup>

src/ActiveLogin.Authentication.BankId.AspNetCore/ActiveLogin.Authentication.BankId.AspNetCore.csproj

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414

1515
<ItemGroup>
1616
<FrameworkReference Include="Microsoft.AspNetCore.App" />
17-
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.1" />
18-
19-
<PackageReference Include="ActiveLogin.Identity.Swedish" Version="3.0.0" />
2017
</ItemGroup>
2118

2219
<ItemGroup>
@@ -55,7 +52,7 @@
5552
</ItemGroup>
5653

5754
<ItemGroup>
58-
<PackageReference Include="Microsoft.TypeScript.MSBuild" Version="5.6.2">
55+
<PackageReference Include="Microsoft.TypeScript.MSBuild" Version="5.7.3">
5956
<PrivateAssets>all</PrivateAssets>
6057
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
6158
</PackageReference>

src/ActiveLogin.Authentication.BankId.AzureKeyVault/ActiveLogin.Authentication.BankId.AzureKeyVault.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Azure.Identity" Version="1.13.0" />
10+
<PackageReference Include="Azure.Identity" Version="1.13.2" />
1111
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="all" />
1212
</ItemGroup>
1313

src/ActiveLogin.Authentication.BankId.AzureKeyVault/AzureKeyVaultCertificateClient.cs

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace ActiveLogin.Authentication.BankId.AzureKeyVault;
88

9-
internal class AzureKeyVaultCertificateClient
9+
internal class AzureKeyVaultCertificateClient(SecretClient secretClient)
1010
{
1111
public static AzureKeyVaultCertificateClient Create(ClientCertificateFromAzureKeyVaultOptions options)
1212
{
@@ -46,16 +46,10 @@ private static TokenCredential GetTokenCredential(ClientCertificateFromAzureKeyV
4646
}
4747

4848
private const string CertificateContentType = "application/x-pkcs12";
49-
private readonly SecretClient _secretClient;
50-
51-
private AzureKeyVaultCertificateClient(SecretClient secretClient)
52-
{
53-
_secretClient = secretClient;
54-
}
5549

5650
public X509Certificate2 GetX509Certificate2(string keyVaultSecretKey)
5751
{
58-
var secret = _secretClient.GetSecret(keyVaultSecretKey).Value;
52+
var secret = secretClient.GetSecret(keyVaultSecretKey).Value;
5953
if (secret.Properties.ContentType != CertificateContentType)
6054
{
6155
throw new ArgumentException($"This certificate must be of type {CertificateContentType}");
@@ -66,11 +60,9 @@ public X509Certificate2 GetX509Certificate2(string keyVaultSecretKey)
6660
return GetX509Certificate2(certificateBytes);
6761
}
6862

69-
private X509Certificate2 GetX509Certificate2(byte[] certificate)
63+
private static X509Certificate2 GetX509Certificate2(byte[] certificate)
7064
{
71-
var exportedCertCollection = new X509Certificate2Collection();
72-
exportedCertCollection.Import(certificate, null, X509KeyStorageFlags.MachineKeySet);
73-
74-
return exportedCertCollection.Cast<X509Certificate2>().First(x => x.HasPrivateKey);
65+
return X509CertificateLoader.LoadPkcs12Collection(certificate, null, X509KeyStorageFlags.MachineKeySet)
66+
.First(x => x.HasPrivateKey);
7567
}
7668
}

src/ActiveLogin.Authentication.BankId.Core/ActiveLogin.Authentication.BankId.Core.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@
1515
</ItemGroup>
1616

1717
<ItemGroup>
18-
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.1" />
19-
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.2" />
18+
<PackageReference Include="Microsoft.Bcl.Cryptography" Version="9.0.2" />
19+
<PackageReference Include="Microsoft.Extensions.Http" Version="9.0.2" />
20+
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.2" />
2021
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="all" />
2122
</ItemGroup>
2223

0 commit comments

Comments
 (0)