-
Notifications
You must be signed in to change notification settings - Fork 92
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
Move away from unmaintained dgrijalva/jwt-go #50
Comments
After speaking with the maintainer we decided to move to https://github.com/square/go-jose instead |
thanks @adamchalmers for bringing up the issue. I'd definitely like to migrate to a underlining jwt pkg that is better maintained, especially around security concerns. I took a look at square/go-jose and was starting to integrate it into jwtauth this morning when I realized that it doesn't support custom jwt claims, which is certainly problematic. Looks like neither v2 or v3 of go-jose/jwt support custom claims, but let me know if you see how to do it |
https://github.com/lestrrat-go/jwx is another option, and it supports custom claims. For others if you can have a look at jmx, its the likely candidate I will migrate towards |
square/go-jose does support custom claims, it's just kinda hidden and not very discoverable. Look at the docs for jwt.Builder type Builder interface {
// Claims encodes claims into JWE/JWS form. Multiple calls will merge claims
// into single JSON object. If you are passing private claims, make sure to set
// struct field tags to specify the name for the JSON key to be used when
// serializing.
Claims(i interface{}) Builder
...
} It takes |
oh cool, thanks for pointing that out. Strange interface though |
Submit a PR then.. I'm happy to review. |
Free OSS is more like a potluck, and less of a restaurant |
hey all, just FYI here is PR for using a new underlying jwt library, #52 |
done in b8af768 and published new v1.1.0 release with go.mod support too, https://github.com/go-chi/jwtauth/releases/tag/v1.1.0 |
FYI, I have published a new fork of this repository, https://github.com/golang-cz/jwtauth, which uses community-maintained The It may be of interest to those, who maintain big codebases, and don't have enough time for big refactors :) |
Hi all. https://github.com/dgrijalva/jwt-go has had a security issue open for a while now (dgrijalva/jwt-go#428, dgrijalva/jwt-go#422) about the
aud
field. I and several other devs have reached out to the maintainer about merging a fix PR. However, we haven't gotten a reply. The repo hasn't seen any activity since January and I suspect it's no longer maintained.My suggestion is to move to a fork from Form3, https://github.com/form3tech-oss/jwt-go/
The text was updated successfully, but these errors were encountered: