Page MenuHomePhabricator

[lib] Initiate a keyserver session recovery when keyserver socket sends not_logged_in
ClosedPublic

Authored by ashoat on Mar 3 2024, 8:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, May 13, 12:15 AM
Unknown Object (File)
Apr 4 2024, 7:02 PM
Unknown Object (File)
Apr 4 2024, 7:02 PM
Unknown Object (File)
Apr 4 2024, 6:43 PM
Unknown Object (File)
Mar 29 2024, 8:13 AM
Unknown Object (File)
Mar 21 2024, 6:53 PM
Unknown Object (File)
Mar 15 2024, 1:04 AM
Unknown Object (File)
Mar 13 2024, 4:31 AM
Subscribers
None

Details

Summary

I think it makes more sense to use a session recovery here, since it has the ability to automatically log the user in, which would presumably address the not_logged_in issue.

If the session recovery fails, it will result in the user's session being invalidated, and the user being logged out. This matches the current behavior of setConnectionIssueActionType.

NOTE: This diff removes the only kind of ConnectionIssue. It's not ready yet, but in a later diff I will introduce a new kind of ConnectionIssue that we will use for when session recovery fails for a non-authoritative keyserver, instead of calling setNewSession. At that point I'll clean up the hacks in keyserver-reducer.test.js.

Depends on D11217

Test Plan

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable