Skip to content

Commit 9d51eeb

Browse files
elinohlssonElin Fokine
andauthored
Revert to .Net 8 since certificate issues in .Net 9 is not yet resolved. (#501)
* Revert to .Net 8 since certificate issues in .Net 9 is not yet resolved. * Upgrade .Net 8 SDK version. --------- Co-authored-by: Elin Fokine <ElinO@activesolution.se>
1 parent 419c660 commit 9d51eeb

19 files changed

Lines changed: 65 additions & 61 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": "9.0.102",
3+
"version": "8.0.407",
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>net9.0</TargetFramework>
4+
<TargetFramework>net8.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="9.0.2" />
21+
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="8.0.10" />
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>net9.0</TargetFramework>
4+
<TargetFramework>net8.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.1.0" />
22+
<PackageReference Include="Duende.IdentityServer" Version="7.0.8" />
2323
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.22.0" />
24-
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="9.0.2" />
24+
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="8.0.10" />
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>net9.0</TargetFramework>
4+
<TargetFramework>net8.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="9.0.2" />
24-
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.2" />
25-
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="9.0.2" />
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" />
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>net9.0</TargetFramework>
4+
<TargetFramework>net8.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="9.0.2" />
16+
<PackageReference Include="System.Text.Json" Version="8.0.5" />
1717
</ItemGroup>
1818

1919
<ItemGroup>

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
<ItemGroup>
1616
<FrameworkReference Include="Microsoft.AspNetCore.App" />
17+
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.1" />
18+
<PackageReference Include="ActiveLogin.Identity.Swedish" Version="3.0.0" />
1719
</ItemGroup>
1820

1921
<ItemGroup>
@@ -52,7 +54,7 @@
5254
</ItemGroup>
5355

5456
<ItemGroup>
55-
<PackageReference Include="Microsoft.TypeScript.MSBuild" Version="5.7.3">
57+
<PackageReference Include="Microsoft.TypeScript.MSBuild" Version="5.6.2">
5658
<PrivateAssets>all</PrivateAssets>
5759
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
5860
</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.2" />
10+
<PackageReference Include="Azure.Identity" Version="1.13.0" />
1111
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="all" />
1212
</ItemGroup>
1313

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ public X509Certificate2 GetX509Certificate2(string keyVaultSecretKey)
6262

6363
private static X509Certificate2 GetX509Certificate2(byte[] certificate)
6464
{
65-
return X509CertificateLoader.LoadPkcs12Collection(certificate, null, X509KeyStorageFlags.MachineKeySet)
66-
.First(x => x.HasPrivateKey);
65+
var exportedCertCollection = new X509Certificate2Collection();
66+
exportedCertCollection.Import(certificate, null, X509KeyStorageFlags.MachineKeySet);
67+
68+
return exportedCertCollection.Cast<X509Certificate2>().First(x => x.HasPrivateKey);
6769
}
6870
}

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

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

1717
<ItemGroup>
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" />
18+
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.1" />
19+
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.2" />
2120
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="all" />
2221
</ItemGroup>
2322

0 commit comments

Comments
 (0)