Page MenuHomePhabricator

[keyserver] call uploadSecondaryDeviceKeysAndLogIn
ClosedPublic

Authored by varun on May 21 2024, 11:57 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jun 24, 2:13 AM
Unknown Object (File)
Sun, Jun 23, 4:30 AM
Unknown Object (File)
Fri, Jun 21, 5:28 AM
Unknown Object (File)
Fri, Jun 21, 5:28 AM
Unknown Object (File)
Fri, Jun 21, 5:28 AM
Unknown Object (File)
Fri, Jun 21, 5:28 AM
Unknown Object (File)
Thu, Jun 20, 3:25 AM
Unknown Object (File)
Sat, Jun 15, 1:15 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
Branch
hackathon (branched from master)
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

keyserver/src/socket/tunnelbroker-socket.js
167

sorry ignore this log, will remove

172

sorry ignore this log, will remove

Makes sense to me

keyserver/src/utils/olm-utils.js
137

Nit: space here but none in the previous call

164

Typo (notfi)

This revision is now accepted and ready to land.May 22 2024, 2:20 AM
keyserver/src/socket/tunnelbroker-socket.js
165 ↗(On Diff #40649)

this gets removed later in stack