-
-
Notifications
You must be signed in to change notification settings - Fork 364
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
Consider dropping go-jwt in favor of go-jose #514
Comments
Yes, let's do that! |
Another reason to move to go-jose is that go-jose supports clock skew leeway in validation: https://github.com/square/go-jose/blob/v2/jwt/validation.go#L68-L75 go-jwt does not: https://github.com/dgrijalva/jwt-go/blob/master/claims.go#L29 |
Absolutely, if anyone is up for the challenge I'm happy to help! |
Hi, I would propose to first migrate adapting go-Jose to jwt-go types. I took a look and it is feasible without much friction/adaptation. The following jwt-go types needs to be moved to Fosite’s jwt package , which are simple and small: in a second phase we can take advantage of go-Jose extra capabilities. what do you think? I think, given it’s expected size I would be able to contribute to this change. |
That sounds like a great plan! |
Closes ory#514 Co-authored-by: hackerman <3372410+aeneasr@users.noreply.github.com>
go-jwt seems to not be maintained really. It has open/known security issue (which have multiple PRs open to address, earliest in 2018: dgrijalva/jwt-go#286). And it requires numbers to be floats because it cannot validate ints. PR to fix this has been made in 2016. This is why fosite has to issue float values as expiration timestamps which are not necessary the most compatible. See my comment here.
Fosite is already using go-jose which seems to be more maintained. So not sure why not fully switch to it?
Or we could at least use a fork of go-jwt?
The text was updated successfully, but these errors were encountered: