Page MenuHomePhabricator

[lib] Call keyserver auth
ClosedPublic

Authored by tomek on Jan 25 2024, 6:40 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 22, 10:49 PM
Unknown Object (File)
Fri, Nov 22, 10:43 PM
Unknown Object (File)
Fri, Nov 22, 6:41 PM
Unknown Object (File)
Fri, Nov 8, 9:41 AM
Unknown Object (File)
Wed, Nov 6, 12:43 PM
Unknown Object (File)
Oct 24 2024, 5:44 AM
Unknown Object (File)
Oct 17 2024, 4:46 AM
Unknown Object (File)
Oct 17 2024, 4:46 AM
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
Branch
handlers-2
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

tomek requested review of this revision.Jan 25 2024, 6:58 AM
lib/components/keyserver-connection-handler.js
135–145

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

lib/components/keyserver-connection-handler.js
60

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.