Comments (8)
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.
Testing your change is on my list of things to do. I just have not had time to do it properly yet.
from oidc.
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.
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.
@livio-a had you have time to check this one?
from oidc.
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.
Hey @flyn-org did you have time to try it with the new version?
from oidc.
No stress, I totally understand. Itβs just been on my list as well to check the current state π
from oidc.
Related Issues (20)
- JWT Assertion payload does not match RFC example when generated with OIDC relying party HOT 8
- [Bug]: Client Assertion token request includes basic auth header HOT 3
- PKCE support is not enough HOT 1
- use trace id of external service HOT 2
- Allow custom forwarded header HOT 2
- [Bug]: client invalid signature when OIDC server is restarted HOT 2
- The automated release is failing π¨
- [Bug]: nil pointer dereference in `crypto.BytesToPrivateKey` HOT 3
- Access to auto discovery configuration HOT 3
- Allow empty nonce from ID Tokens issued from Refresh Tokens HOT 10
- Support form_post OIDC response mode HOT 4
- Do not ignore all JWKS parsing errors HOT 1
- [Bug]: nil pointer dereference when not setting unauthorized handler HOT 2
- Switch to `log/slog` HOT 2
- [Bug]: The behavior of response_mode does not adhere to the guidelines HOT 2
- Support ``verification_url`` mispelling in the device auth response HOT 6
- Set IDTokenSigningAlgValuesSupported of DiscoveryConfiguration obtained by Discover when initializing RelyingParty. HOT 3
- Update to go-jose/v4 HOT 4
- add prometheus metrics for apis HOT 2
- JWT Profile Grant: return id_token if openid scope is set HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oidc.