Page MenuHomePhabricator

[lib] Wait for connection to auth ks before requesting user infos
ClosedPublic

Authored by inka on Tue, Jun 25, 2:30 AM.

Details

Summary

issue: ENG-8554
When client receives keyserver auth response, they may call update_relationships endpoint before processing the response. This results in a not_logged_in error from the server. To avoid this we will wait until we are connected to the auth keyserver before requesting data. For now all users are required to be connected to the auth keyserver, so this will happen after a while.
We could call findUserIdentities and only wait with calling the keyserver, but this would require more changes. And this will all be removed soon, once we stop asking the keyserver for user infos and start asking peers directly. So I think this is all right

Test Plan

Tested that login doesn't result in errors anymore

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable