Skip to content
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

feat: revocation improvement #1472

Merged
merged 3 commits into from
Sep 19, 2023

Conversation

wadeking98
Copy link
Contributor

@wadeking98 wadeking98 commented Sep 18, 2023

Added revocation intervals to proof templates to ensure that mobile verifiers don't accept revoked credentials.
Depends on: openwallet-foundation/bifold-wallet#972
Resolves: #1439

Signed-off-by: wadeking98 <wkingnumber2@gmail.com>
Signed-off-by: wadeking98 <wkingnumber2@gmail.com>
Signed-off-by: wadeking98 <wkingnumber2@gmail.com>
@sonarcloud
Copy link

sonarcloud bot commented Sep 18, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

{
names: ['given_names', 'family_name', 'picture'],
restrictions: verifiedPersonRestrictions,
nonRevoked: { to: now() },
Copy link
Contributor

@bryce-mcmath bryce-mcmath Sep 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If a user has first opened the wallet and then afterwards a credential is revoked, will it still be accepted because it's after the now()?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now() gets called whenever the template is fetched, so any time the QR code is refreshed the time will be updated. I've tested the changes and it seems to be working as expected, if a credential is revoked before receiving a proof then it will not be valid. I've added the functionality so support this in my bifold PR.

@wadeking98 wadeking98 merged commit 21e3796 into bcgov:main Sep 19, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Proof request templates should not accepts revoked credentials
2 participants