Page MenuHomePhabricator

[identity] db client method to get session initialization info
ClosedPublic

Authored by varun on Feb 27 2023, 10:18 AM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 26 2024, 10:55 PM
Unknown Object (File)
Oct 26 2024, 10:55 PM
Unknown Object (File)
Oct 26 2024, 10:55 PM
Unknown Object (File)
Oct 26 2024, 10:54 PM
Unknown Object (File)
Oct 26 2024, 10:46 PM
Unknown Object (File)
Oct 21 2024, 5:59 PM
Unknown Object (File)
Oct 19 2024, 12:51 PM
Unknown Object (File)
Oct 18 2024, 5:20 AM
Subscribers

Details

Summary

the session initialization info will be stored in a map in dynamoDB. the map's key is the device signingPublicKey, and the value is a map of initialization info component names (e.g. social proof, one-time prekeys, etc.) to their respective values.

example json (omitting irrelevant fields):

{
"userID": "12345",
"devices": {

"signingkey1": {
 "otherkey1": "lorem",
 "socialproof": "ipsum"
}

}
}

Test Plan

created 3 items in a test DDB table:

  • well-formed item with a devices map that contained a couple signing keys and their corresponding initialization info components
    • got back the expected HashMap<String, HashMap<String, String>>
  • well-formed item with an empty devices map
    • got back the expected HashMap, but with nothing inside
  • malformed item with no devices attribute
    • got back an error, as expected

Diff Detail

Repository
rCOMM Comm
Branch
identity
Lint
No Lint Coverage
Unit
No Test Coverage