aries-framework-go
aries-framework-go copied to clipboard
WACI Credential Manifest flow bdd tests
Add BDD tests to show WACI Issuance DIDComm flow.
Note: WACI uses
- DIDComm v2
- Issue Credential v3
- Connection less messaging (No DID Exchange)
- Alice gets OOB message from a Issuer
- Alice sends issue-credential propose message to the Issuer
- Issuer sends issue-credential offer-credential message with Credential Manifest and Unsigned Credential Fulfillment data to Alice
- Alice sends issue-credential request-credential message with Credential Application to Issuer
- Issuer sends issue-credential offer-credential message with signed Credential Fulfillment data to Alice and Alice verifies the redirectURL inside the message.
- Alice sends issue-credential ack message to the issuer.
Steps - Success Scenario with PEx:
- Alice has PermanentResidentCard VC stored in her agent
- Alice gets OOB message from a Issuer
- Alice sends issue-credential propose message to the Issuer
- Issuer sends issue-credential offer-credential message with Credential Manifest with PEx requirement of PermanentResidentCard VC and Unsigned Credential Fulfillment data to Alice
- Alice sends issue-credential request-credential message with Credential Application including her PermanentResidentCard to Issuer
- Issuer sends issue-credential offer-credential message with signed Credential Fulfillment data to Alice and Alice verifies the redirectURL inside the message.
- Alice sends issue-credential ack message to the issuer.
- Alice gets OOB message from a Issuer
- Alice sends issue-credential propose message to the Issuer
- Issuer sends issue-credential offer-credential message with Credential Manifest and Unsigned Credential Fulfillment data to Alice
- Alice sends issue-credential request-credential message with Credential Application to Issuer
- Issuer fails to validate the credential application and sends issue-credential problem-report message with redirect URL
I completed this in https://github.com/hyperledger/aries-framework-go/pull/3133 and https://github.com/hyperledger/aries-framework-go/pull/3138.
^ Those tests are for the Go SDK. Controller BDD tests are still pending.
Actually, now that I re-read the issue text more carefully, I see that you've described a few different scenarios - I don't have tests for each scenario. My test is for the general flow as defined in https://identity.foundation/waci-presentation-exchange/#issuance-2 but there would be more work to be done to demonstrate the three scenarios per the steps in your original post https://github.com/hyperledger/aries-framework-go/issues/3061#issue-1054992391