-
Notifications
You must be signed in to change notification settings - Fork 94
Upgrade to lestrrat-go/jwx/v3 #101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Yes please, this brings issues! |
|
@plutov Heya! Just had a look and you had the same issue I had, but i did get the tests working in the end 🙈 I fixed it by this replacement :) - // NewSignatureAlgorithm creates a new SignatureAlgorithm object with the given name.
- jwa.NewSignatureAlgorithm
+ // LookupSignatureAlgorithm returns the SignatureAlgorithm object for the given name.
+ jwa.LookupSignatureAlgorithm |
- Upgrade Go version to 1.24.3 - Update lestrrat-go/jwx/v3 to version 3.0.2 - Upgrade golang.org/x/crypto to version 0.38.0 and golang.org/x/sys to version 0.33.0 - Refactor JWT claim extraction in jwtauth.go and jwtauth_test.go to use transform.AsMap for improved readability and error handling.
|
@kw510 please also change the version in the example file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Minor feedback
Thank you 👍
- Downgrade Go version in go.mod to 1.23.0 - Update RSA private and public keys in jwtauth_test.go for improved security and compatibility - Adjust token string in TestSimpleRSAVerifyOnly for consistency
|
@VojtechVitek @kw510 let's merge it ? ;) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you.
Let me test this some more before we merge 👍
Can anyone else help test this PR?
|
Hey @VojtechVitek I tested it on a project where it was originally failing, but now it works well. Looks good from my side! |
|
@VojtechVitek how is testing going? Why this merge takes so long? |
|
Same question as @plutov: I've been holding off updating some libraries because of this PR. What's the status? |
Update dependencies to use v3 of lestrrat-go/jwx and related packages
Refactor JWT handling in tests and main code for compatibility with new API.