-
Notifications
You must be signed in to change notification settings - Fork 204
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
fix(openid4vc): several fixes and improvements #1795
fix(openid4vc): several fixes and improvements #1795
Conversation
Signed-off-by: Timo Glastra <[email protected]>
Signed-off-by: Timo Glastra <[email protected]>
Signed-off-by: Timo Glastra <[email protected]>
Signed-off-by: Timo Glastra <[email protected]>
Signed-off-by: Timo Glastra <[email protected]>
Signed-off-by: Timo Glastra <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of minor points, LGTM!
packages/openid4vc/src/openid4vc-issuer/OpenId4VcIssuerService.ts
Outdated
Show resolved
Hide resolved
packages/openid4vc/src/openid4vc-issuer/OpenId4VcIssuerServiceOptions.ts
Show resolved
Hide resolved
type: openBadgeCredential.types, | ||
issuer: new W3cIssuer({ id: issuerDid }), | ||
credentialSubject: new W3cCredentialSubject({ id: holderDid }), | ||
issuanceDate: w3cDate(Date.now()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not related to your PR, but looking at all the W3cXXX
classes, it might be worth considering to make the W3cDate
a class as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah maybe, or we can make it a date instance and do the transformation for the user
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to address this in a separate PR, as it will require quite some changes across the codebase 😊
Signed-off-by: Timo Glastra <[email protected]>
Enable
issuanceMetadata
to be provided during offer creation, to add some context to an issuance session. Can be used to already provide the credential data, store an user id so the data can be fetched at time of issuance, or other metadata.This was already supported, but just not exposed in the API.
Non breaking and can be released as 0.5.1