dimagi / commcare-android

Offline First Android software client for CommCare, the world's largest platform for designing, managing, and deploying robust mobile applications to frontline workers worldwide
https://www.dimagi.com/open-source/
Apache License 2.0
38 stars 27 forks source link

Connect DB passphrase managed by ConnectID server #2772

Closed OrangeAndGreen closed 4 months ago

OrangeAndGreen commented 4 months ago

Several improvements to support having the database passphrase be issues by the ConnectID server, rather than generating a random passphrase locally.

Changes include: -Not creating the DB until user registers/recovers account -Deleting DB when forgetting user (and on corrupted DB) -Retrieving the passphrase and rekeying the DB for existing users -Supporting background network calls (with concurrent calls allowed)