Page MenuHomePhabricator

[lib] Call keyserver auth
ClosedPublic

Authored by tomek on Jan 25 2024, 6:40 AM.
Tags
None
Referenced Files
F3521565: D10814.id36251.diff
Mon, Dec 23, 3:56 AM
F3521564: D10814.id36158.diff
Mon, Dec 23, 3:56 AM
F3521563: D10814.id36161.diff
Mon, Dec 23, 3:56 AM
F3521561: D10814.id36132.diff
Mon, Dec 23, 3:56 AM
F3521540: D10814.id.diff
Mon, Dec 23, 3:56 AM
F3521526: D10814.diff
Mon, Dec 23, 3:55 AM
Unknown Object (File)
Tue, Nov 26, 2:49 PM
Unknown Object (File)
Tue, Nov 26, 1:25 PM
Subscribers

Details

Summary

Prepare a request and call keyserver auth from a handler.

Depends on D10813

Test Plan

Check if the endpoint is called with provided data.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tomek requested review of this revision.Jan 25 2024, 6:58 AM
lib/components/keyserver-connection-handler.js
135–145 ↗(On Diff #36132)

The logic of when to call this effect will be updated later in the stack

lib/components/keyserver-connection-handler.js
60 ↗(On Diff #36132)

We probably should modify this logic when we perform a recovery

lib/components/keyserver-connection-handler.js
45–49 ↗(On Diff #36161)

This logic is a bit confusing.

I guess the reason we decided to store a separate deviceToken per keyserver is because we want to know if we've shared our deviceToken to that keyserver yet, not because we expect to have a different deviceToken per keyserver.

It would probably make more sense if we have a deviceTokenHasBeenUploaded: boolean in KeyserverInfo, and a deviceToken field at the top level of Redux. But we'll likely end up removing deviceTokens from keyservers soon anyways...

lib/components/keyserver-connection-handler.js
45–49 ↗(On Diff #36161)

It would probably make more sense if we have a deviceTokenHasBeenUploaded: boolean in KeyserverInfo, and a deviceToken field at the top level of Redux. But we'll likely end up removing deviceTokens from keyservers soon anyways...

Agree. But moving the token to Tunnelbroker will simplify it even more. For now, I don't think it is worth fixing now.

This revision is now accepted and ready to land.Jan 29 2024, 1:51 AM
This revision was automatically updated to reflect the committed changes.