Closed poulsen-diana closed 3 weeks ago
Hello,
We have made some modifications in the release/4.0.4 branch to migrate the startup project from dotnet7 to dotnet8. You can take a look at our modifications here:
The nuget package Microsoft.AspNetCore.Authentication.JwtBearer
is no longer used. Instead, we are using the Nuget package AspNetCore.Authentication.ApiKey
to check the API Key. Additionally, the functions ConvertSigningKey
and ConvertEncryptionKey
can be removed.
By the way, all projects will be migrated to DOTNET8 in the next release 5.0.0.
We are using the SimpleIdServer.IdServer project and not SimpleIdServer.Scim. I may be able to leverage these changes, but I don't see any updates to the Startup.cs file linked above.
Apologies for my misunderstanding :(
I have made some modifications in the release/4.0.4 branch to migrate the SimpleIdServer projects to DOTNET8.
All Nuget packages will be migrated to DOTNET8 in release 5.0.0 :)
https://github.com/simpleidserver/SimpleIdServer/commit/07122474763720d8c438748bfc110c0fa95c060f
All the projects have been migrated to DOTNET 8. You can use the version 5.0.0
Awesome. Also thank you so much for taking the time to update the 4.0.4 branch for us prior to the release.
SimpleIdServer version 4.0.4
Receiving the following error trying to migrate a .NET 7 solution to .NET 8:
System.TypeLoadException HResult=0x80131522 Message=Could not load type 'System.IdentityModel.Tokens.Jwt.JsonExtensions' from assembly 'System.IdentityModel.Tokens.Jwt, Version=7.4.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Source=SimpleIdServer.IdServer StackTrace: at SimpleIdServer.IdServer.Api.Jwks.JwksRequestHandler.<Get>g__ConvertSigningKey|2_0(SigningCredentials signingCredentials) in SimpleIdServer.IdServer.Api.Jwks\JwksRequestHandler.cs:line 39 at SimpleIdServer.IdServer.Api.Jwks.JwksRequestHandler.Get(String realm) in SimpleIdServer.IdServer.Api.Jwks\JwksRequestHandler.cs:line 26
Details:
JsonObject ConvertEncryptionKey(EncryptingCredentials encryptingCredentials) { var publicJwk = encryptingCredentials.SerializePublicJWK(); return JsonNode.Parse(JsonExtensions.SerializeToJson(publicJwk)).AsObject(); }