Uploaded image for project: 'Realm Core'
  1. Realm Core
  2. RCORE-1931

Add user caching based on base URL to allow a single user to log into multiple servers

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sync
    • None

      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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            michael.wilkersonbarker@mongodb.com Michael Wilkerson-Barker (Inactive)
            AD Sync Client
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: