Skip to content

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.

  1. 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/

  2. 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.

  3. The connection that triggered the event will be removed.

  4. Once proof request is received,

  5. Handler will extract connectionID and event from the proof request

  6. 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

@boyan.tsolov @alexey.lunin

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)

Edited by Zdravko Iliev

Merge request reports

Loading