-
Notifications
You must be signed in to change notification settings - Fork 117
4.8 Expiration #496
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
Comments
A verifiable credential is not a JWT. It has properties that a JWT does not and allows for usages that (to my understanding) JWTs do not. |
JWTs use |
@awoie Why not use exp? is there a need to invent ? |
@nadalin wrote:
The datatype associated with JWT |
@msporny For many cases the JWT "exp" is fine, for others it may not be, all existing JWT claims should be allowed to be used ASIS for interoperability reasons |
VCWG Teleconference Resolution: https://www.w3.org/2019/04/09-vcwg-minutes.html#resolution08 RESOLUTION: Re-using the JWT "exp" claim in a Verifiable Credential is not appropriate because the datatype associated with JWT "exp" is a POSIX time value and the datatype associated with the expirationDate is a RFC3339 combined date and time string. The VCWG prefers the more verbose datatype. Non-normative text should be added to the specification on how deterministic and bi-directional translation should be done and issue #496 should be closed after that PR is |
PR #539 is designed to address this issue. There is text in the specification already on how to convert to/from datetimes in the section on JWTs: https://w3c.github.io/vc-data-model/#jwt-encoding and https://w3c.github.io/vc-data-model/#jwt-decoding. This issue can be closed as soon as PR #539 is merged and the 7 day close delay is over. |
@msporny if a "exp" is all that is needed then it should be acceptable, there is no requirement in the specification that says there is a dependency on RFC3339. So don't agree with the proposed change |
The text which describes the required dependency on RFC3339 for expiration dates is in section 4.8.
The text which describes the need to convert from RFC3339 to a UNIX timestamp if the VC is serialized as a JWT is in section 6.3.1
And the text which describes the need to convert from a UNIX timestamp to RFC3339 when moving from a JWT serialization of a VC is in section 3.6.1
|
This issue appears to have been resolved with the additional explanation from @brentzundel , and no new comments have been added in the past 28 days. Closing. |
Suggest that values like expirationDate be changed to match the JWT values already established in the industry, no need to make new claims since when using a JWT you have to use exp anyway and understand the processing
The text was updated successfully, but these errors were encountered: