feat: rest agent support for connection and proof change state events
Description
Added additional conditional listeners for connection and proof request state changes, required for HIN project to work.
-
Once connection is made, a proof request is sent except if this is the first connection. /Implied that the first connection will be used for sending the credential to the user/
-
If the connection is bigger the 1, than this means a connection with purpose of proof request should be triggered. And proof request will be sent based on the first connection.
-
The connection that triggered the event will be removed.
-
Once proof request is received,
-
Handler will extract connectionID and event from the proof request
-
Send them to SVDX to create mapping based on connectionId and email.
Related issues
Related issues in the ticket ( SVDX and VCM )
Checklist
-
I have updated the documentation (if necessary) -
I have added unit tests for new functionality (if applicable) -
My code follows the style guidelines of this project -
I have tested this code on my local machine before submitting this MR
Reviewers
Additional Notes
Left some logic for basic auth with guards, as if we make the ocm-ui to work with agent rest we will need basic auth to be only for sending messages.
Closes #36 (closed)