async def handle_issue_credential(self, message):
     thread_id = message["thread_id"]
     push_resource(thread_id, "credential-msg", message)
     log_msg('Received Issue Credential Webhook message: ' + json.dumps(message)) 
     if "revocation_id" in message: # also push as a revocation message 
         push_resource(thread_id, "revocation-registry-msg", message)
         log_msg('Issue Credential Webhook message contains revocation info') 
 async def handle_connections(self, message):
     if "invitation_msg_id" in message:
         # This is an did-exchange message based on a Non-Public DID invitation
         invitation_id = message["invitation_msg_id"]
         push_resource(invitation_id, "didexchange-msg", message)
     elif "request_id" in message:
         # This is a did-exchange message based on a Public DID non-invitation
         request_id = message["request_id"]
         push_resource(request_id, "didexchange-msg", message)
     else:
         connection_id = message["connection_id"]
         push_resource(connection_id, "connection-msg", message)
     log_msg('Received a Connection Webhook message: ' + json.dumps(message))
예제 #3
0
 async def handle_connections(self, message):
     connection_id = message["connection_id"]
     push_resource(connection_id, "connection-msg", message)
     log_msg('Received a Connection Webhook message: ' +
             json.dumps(message))
 async def handle_oob_invitation(self, message):
     # No thread id in the webhook for revocation registry messages
     invitation_id = message["invitation_id"]
     push_resource(invitation_id, "oob-inviation-msg", message)
     log_msg("Received Out of Band Invitation Webhook message: " +
             json.dumps(message))
예제 #5
0
 async def handle_issue_credential(self, message):
     thread_id = message["thread_id"]
     push_resource(thread_id, "credential-msg", message)
     # put a log message here (all the handle_ )
     # TODO wait here to determine the response to the web hook?????
     pass
예제 #6
0
 async def handle_connections(self, message):
     connection_id = message["connection_id"]
     push_resource(connection_id, "connection-msg", message)
     # put a log message here (all the handle_ )
     # TODO wait here to determine the response to the web hook?????
     pass
예제 #7
0
 async def handle_present_proof(self, message):
     thread_id = message["thread_id"]
     push_resource(thread_id, "presentation-msg", message)
     # put a log message here (all the handle_ )
     # TODO wait here to determine the response to the web hook?????
     pass