-
-
Notifications
You must be signed in to change notification settings - Fork 310
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
json: cannot unmarshal string into Go struct field claims.iat of type int64 #404
Comments
This should probably be reported to the underlying JWT library we use in Mercure? WDYT? http://github.com/form3tech-oss/jwt-go |
As per https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-2, the jwt-go library should indeed support strings for date/time fields:
I'll propose a fix there when I have some free time (but feel free to report/fix it before). |
Thanks @chalasr :) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Is there any chance that fix can be backported to the legacy version (e.g. v0.10)? |
@garak use the "legacy" build that we provide for newer versions. It contains the fix and is compatible with the legacy configuration. |
When building jwt with new
lcobucci/jwt
lib version I get this error.Looking at it's source if datetime supports miliseconds then it appends it.
This lib expects datetime instances:
When trying to use
withClaim
manually with "iat" or "exp" it throws error: "Builder#withClaim() is meant to be used for non-registered claims, check the documentation on how to set claim "iat".So my question is should mercure support these claims with miliseconds?
The text was updated successfully, but these errors were encountered: