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(ssi): Issuer component re issuance of bpnl and membership credentials #239

Open
wants to merge 30 commits into
base: main
Choose a base branch
from

Conversation

leandro-cavalcante
Copy link
Contributor

@leandro-cavalcante leandro-cavalcante commented Aug 20, 2024

Description

Development of an automated backend logic inside the issuer component for the re-issuance of BPNL and Membership credentials prior to their expiration. The system will incorporate a scheduled job to run nightly, identifying credentials expiring the next day and re-issuing them automatically, while adhering to defined business rules and workflows.

Why

A creation of a new Reissuance service and related process were created in order to fulfill the requirements of reissuing a new credential when the actual credential is about to expire.

Issue

Link to Github issue.

Checklist

Please delete options that are not relevant.

  • I have followed the contributing guidelines
  • I have performed a self-review of my own code
  • I have successfully tested my changes locally
  • I have added tests that prove my changes work
  • I have checked that new and existing tests pass locally with my changes
  • I have commented my code, particularly in hard-to-understand areas
  • I have added copyright and license headers, footers (for .md files) or files (for images)

leandro-cavalcante and others added 22 commits August 1, 2024 14:26
…t-Re-issuance-of-BPNL-and-Membership-Credentials
…mbership-Credentials' of https://github.com/leandro-cavalcante/ssi-credential-issuer into feat/CS-948-Issuer-Component-Re-issuance-of-BPNL-and-Membership-Credentials
…mbership-Credentials' of https://github.com/leandro-cavalcante/ssi-credential-issuer into feat/CS-948-Issuer-Component-Re-issuance-of-BPNL-and-Membership-Credentials
@leandro-cavalcante leandro-cavalcante changed the title Feat/cs 948 issuer component re issuance of bpnl and membership credentials feat/issuer component re issuance of bpnl and membership credentials Aug 20, 2024
@leandro-cavalcante leandro-cavalcante changed the title feat/issuer component re issuance of bpnl and membership credentials feat:issuer component re issuance of bpnl and membership credentials Aug 20, 2024
@leandro-cavalcante leandro-cavalcante changed the title feat:issuer component re issuance of bpnl and membership credentials feat(ssi): Issuer component re issuance of bpnl and membership credentials Aug 20, 2024
Copy link
Member

@Phil91 Phil91 left a comment

Choose a reason for hiding this comment

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

@leandro-cavalcante I have made some changes to your branch, but can't currently push to your repo due to permission issues. The changes can be found here: fce37a1

I've put them in one commit so it should be easy to integrate within your branch. Please have a look at that.


reissuanceRepository.CreateReissuanceProcess(credentialRequest.Id, ssiDetailId);

companyCredentialDetailsRepository.CreateProcessData(ssiDetailId, JsonDocument.Parse(credentialRequest.Schema), credentialRequest.KindId,
Copy link
Member

Choose a reason for hiding this comment

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

this will not work with the current process. It will fail when trying to import the created credential to the holder wallet, because we need the auth data for that. In the current api implementation when creating the credential the auth data are send within the request of the creation.

…t-Re-issuance-of-BPNL-and-Membership-Credentials
Comment on lines +65 to +69
catch (Exception ex)
{
Environment.ExitCode = 1;
logger.LogError(ex, "Verified Credential re-issuance check failed with error: {Errors}", ex.Message);
}

Check notice

Code scanning / CodeQL

Generic catch clause Note

Generic catch clause.
@MaximilianHauer MaximilianHauer added the merge postponed the merge of this PR shall be postponed until all prerequisites are fulfilled label Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge postponed the merge of this PR shall be postponed until all prerequisites are fulfilled
Projects
Status: IN PROGRESS
Development

Successfully merging this pull request may close these issues.

3 participants