Code Monkey home page Code Monkey logo

Comments (8)

flyn-org avatar flyn-org commented on May 30, 2024 1

Please see https://gist.github.com/flyn-org/abb616eecd71b4531395e62d8e60f7b3 for an all-in-one source file.

This approach may seem odd, but it allows a student to run this with `nc -l -p 1024 -e ./service-oidc oidc http://127.0.0.1:1025/auth/callback SECRET student". (The assignment is at https://www.aquinas.dev/project/oidcC.)

Look for "FIXME: Kludge ..." for the portion in question.

from oidc.

flyn-org avatar flyn-org commented on May 30, 2024 1

Testing your change is on my list of things to do. I just have not had time to do it properly yet.

from oidc.

flyn-org avatar flyn-org commented on May 30, 2024 1

I ran my tests a number of times, and the bug didn't pop back up. If you are confident in the logic of you fix---namely that it introduces a synchronization that ensures the signing key is set before things proceed---then I think we can close this. I only hesitate to fully rely on my testing because concurrency bugs tend to be nondeterministic and thus difficult to catch conclusively with testing.

Will we see a new release that contains this fix soon? Thank you!

from oidc.

fforootd avatar fforootd commented on May 30, 2024

Thanks for reporting this. Is it possible to get a snippet of the code you used this lib?

This would make it easier for us to understand the issue 😎

from oidc.

fforootd avatar fforootd commented on May 30, 2024

@livio-a had you have time to check this one?

from oidc.

livio-a avatar livio-a commented on May 30, 2024

Hey @flyn-org

Thanks for the detailed description. Unfortunately, I still could not reproduce the exact error, but I think I've managed to find a solution anyway:
In PR #151 the go storage.GetSigningKey(ctx, keyCh) is now called before creating the signer, because the NewSigner func will wait for the key before returning the Signer.

I also published a pre-released version of it: https://github.com/caos/oidc/releases/tag/v1.0.2-beta.1
Does this solve your problem?

from oidc.

livio-a avatar livio-a commented on May 30, 2024

Hey @flyn-org did you have time to try it with the new version?

from oidc.

livio-a avatar livio-a commented on May 30, 2024

No stress, I totally understand. It’s just been on my list as well to check the current state πŸ˜ƒ

from oidc.

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.