-
Type: Task
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Sync
-
None
-
3 - M (<= 1 month)
-
7243
-
Not Needed
Extend the refresh/access token storage in the user metadata to allow multiple copies based on the server hostname returned in the location information. This will allow somewhat seamless roaming between the server and edge servers, although the user will need to log in the first time they connect to a new server. Once logged in, however, the multiple refresh tokens will allow switching without log in, at least until the refresh token expires.
A migration function will also be needed to read in the existing user meta data and copy it to initial "wildcard" hostname for the existing refresh/access tokens, which will allow to allow re-using the currently stored user creds to log in after updating the app. The "wildcard" hostname can be updated to an actual hostname the next time the access token is updated for that user/server.
Tests will also need to be added to verify logging into multiple servers and the migration function.