Upgrade to lestrrat-go/jwx/v3
-
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.
Yes please, this brings issues!
@kw510 did you manage to make tests work? I did similar PR, but jwt.Sign complains. https://github.com/go-chi/jwtauth/pull/102
@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
@kw510 please also change the version in the example file.
@VojtechVitek @kw510 let's merge it ? ;)
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?