Giter Club home page Giter Club logo

Comments (14)

Tobias-08 avatar Tobias-08 commented on May 29, 2024 2

@brockallen @AndersAbel 7.0.3-preview.1 works as expected in my setup, i. e. it works with .NET 8 and Load user profile: false.

Thanks!

from identityserver.

Tobias-08 avatar Tobias-08 commented on May 29, 2024 1

@AndersAbel: Yes, you are right. CryptographicException.HResult is -2147024894.

from identityserver.

josephdecock avatar josephdecock commented on May 29, 2024

Thanks for the detailed info @Tobias-08. A couple of questions:

  • Are you using automatic key management with the UseX509Certificate enabled, or are you supplying an x509 cert as a manual signing key?
  • Do you need to avoid loading the user profile/is this preventing you from upgrading while we investigate?

from identityserver.

Tobias-08 avatar Tobias-08 commented on May 29, 2024

@josephdecock Thanks for your response. Regarding your questions:

  • We are using automatic key management with UseX509Certificate enabled (because we are using RSK's WS-Federation plugin which requires this).
  • We are not in production yet so we are not blocked for the moment.

from identityserver.

AndersAbel avatar AndersAbel commented on May 29, 2024

This has been asked about before in another support channel. I think that you are right @Tobias-08 that there is a change in behaviour of the constructor. It looks like the exception type thrown has changed in .NET 8 so we might need to update our code to detect the new exception type.

from identityserver.

AndersAbel avatar AndersAbel commented on May 29, 2024

It looks like this is due to a changed behaviour from .NET 7 and up: dotnet/runtime@43c4405

Moving to IdentityServer repo to fix it.

from identityserver.

AndersAbel avatar AndersAbel commented on May 29, 2024

@brockallen @josephdecock The exception type was changed in .NET 7. So technically we should patch IdSrv 6.x. But end of life for .NET 7 is less than two months away. I think a fix for IdSrv 7.x is enough. What do you think?

from identityserver.

AndersAbel avatar AndersAbel commented on May 29, 2024

@Tobias-08 Do you think you could help me to get a value out of the exception thrown? I would need the value of CryptographicException.HResult. I assume that it should be 0x80070002 (= -2147024894), but I would like to verify before creating the patch.

from identityserver.

AndersAbel avatar AndersAbel commented on May 29, 2024

@Tobias-08 Thank you!

from identityserver.

AndersAbel avatar AndersAbel commented on May 29, 2024

@Tobias-08 If we merge this and put out a preview on Nuget, would you be able to help us test it?

@brockallen Could we merge this and put out another preview on 7.0.2 to get it tested in a proper environment? It's obviously not testable on a local development setup because the user profile is always available then.

from identityserver.

Tobias-08 avatar Tobias-08 commented on May 29, 2024

@AndersAbel Yes, of course.

from identityserver.

brockallen avatar brockallen commented on May 29, 2024

We're working on putting out a 7.0.3-preview.1 to test.

from identityserver.

brockallen avatar brockallen commented on May 29, 2024

We've pushed a 7.0.3-preview.1 to NuGet with the proposed fix. Please have a look and let us know how it works. Thanks.

from identityserver.

brockallen avatar brockallen commented on May 29, 2024

7.0.3 Has been pushed to NuGet. Thanks!

from identityserver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.