HomePhabricator
Diffusion Comm 12f4e8af8165

[identity] Implement RPC for secondary device registration

Description

[identity] Implement RPC for secondary device registration

Summary:
Implementation of RPC from D10861.

  • Created function to put device data into device list (device key upload)
  • Called this function along with access token creation from the RPC handler
  • Performed basic device list checks - the RPC fails if the device is not on the device list.

Depends on D10861, D11072, D11073

Test Plan:
Tested both scenarios: device on device list and device not on device list.

  • If the device is not on the list, fails with permission denied status
  • When the device is on the list, the RPC succeeds and returns the access token. Used awslocal dynamodb scan to make sure device keys are put in the devices table under userID|device-{deviceID} primary key.

Reviewers: varun, michal

Reviewed By: varun

Subscribers: ashoat, tomek

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

Details

Provenance
bartekAuthored on Jan 29 2024, 4:08 AM
Reviewer
varun
Differential Revision
D10862: [identity] Implement RPC for secondary device registration
Parents
rCOMM56be0a1c5e98: [identity] Add types for Ed25519-signed nonce challenge
Branches
Unknown
Tags
Unknown