Page MenuHomePhabricator

[keyserver] call uploadSecondaryDeviceKeysAndLogIn
ClosedPublic

Authored by varun on May 21 2024, 11:57 AM.
Tags
None
Referenced Files
F3527114: D12161.id40649.diff
Tue, Dec 24, 3:46 AM
F3527113: D12161.id40497.diff
Tue, Dec 24, 3:46 AM
F3527100: D12161.id.diff
Tue, Dec 24, 3:46 AM
F3527094: D12161.diff
Tue, Dec 24, 3:46 AM
Unknown Object (File)
Tue, Dec 17, 2:24 PM
Unknown Object (File)
Wed, Nov 27, 6:55 AM
Unknown Object (File)
Tue, Nov 26, 1:29 PM
Unknown Object (File)
Nov 23 2024, 3:31 PM
Subscribers

Details

Summary

Depends on D12155

after device list has been updated, secondary device should get a nonce from the keyserver, sign it, and then log in to identity

i also took this chance to introduce a helper function to get the device key upload

Test Plan

successfully logged in to identity and got an access token

checked that the device key upload contents were all present and looked correct. the one-time keys are marked as published in the helper function, but i will have to mark the prekeys as published after the identity service call in the next diff.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

keyserver/src/socket/tunnelbroker-socket.js
167 ↗(On Diff #40497)

sorry ignore this log, will remove

172 ↗(On Diff #40497)

sorry ignore this log, will remove

Makes sense to me

keyserver/src/utils/olm-utils.js
137 ↗(On Diff #40497)

Nit: space here but none in the previous call

164 ↗(On Diff #40497)

Typo (notfi)

This revision is now accepted and ready to land.May 22 2024, 2:20 AM
keyserver/src/socket/tunnelbroker-socket.js
165

this gets removed later in stack