-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(IT Wallet): [SIW-1522] Get credential status attestation after i…
…ssuance (#6162) ## Short description This PR modifies the credential issuance flow to get a status attestation immediately after the credential has been issued, before it is saved to the wallet. If the credential is revoked or the `/status` endpoint returns an error, the entire credential issuance fails, as per design review. ## List of changes proposed in this pull request - Modified the credential issuance machine to add the `Issuance` compound state - Modified credential issuance tests - Changed the target state for `retry` because retried requests were using stale data ## How to test #### Valid credential 1. Get a credential 2. Check the network to see the `/status` request immediately after `/credential` 3. Check the store `features.itWallet.credentials`: it should contain the property `storedStatusAttestation` #### Revoked credential/error Use a proxy to force a 404 or 500 error. 1. Get a credential 2. The issuance should fail and the failure screen should be displayed 3. No credential should be added to the store `features.itWallet.credentials` --------- Co-authored-by: LazyAfternoons <[email protected]> Co-authored-by: Federico Mastrini <[email protected]>
- Loading branch information
1 parent
485a3ad
commit 97797da
Showing
3 changed files
with
145 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters