HomePhabricator
Diffusion Comm b82d22a09a85

[rust-node-addon] add client method to call getInboundKeysForUser

Description

[rust-node-addon] add client method to call getInboundKeysForUser

Summary:
client method calls the mentioned Identity service RPC. we return the keys specific to the device ID provided.

The error handling can be further improved later. For now I'm just returning Generic errors and logging appropriately.

Test Plan:

  • called the new client method from keyserver.js after writing some test data to DDB. i got back the keys as expected.
  • tried calling the method with an invalid device ID and got an error.
  • tried calling the method with an invalid username and got an error.
  • tried calling the method with a malformed identifier_type string ("usernam") and got an error

Reviewers: bartek

Reviewed By: bartek

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D8930

Details

Provenance
varunAuthored on Aug 30 2023, 11:55 AM
Reviewer
bartek
Differential Revision
D8930: [rust-node-addon] add client method to call getInboundKeysForUser
Parents
rCOMMa4954c15ddff: [identity] getInboundKeysForUser RPC implementation
Branches
Unknown
Tags
Unknown