HomePhabricator
Diffusion Comm 8bf9af343487

[Keyserver/identity] Call identity service update_user

Description

[Keyserver/identity] Call identity service update_user

Summary:
Call identity service to update a user as of
the keyserver workflow.

Part of https://linear.app/comm/issue/ENG-2763

Depends on D6939

Test Plan:

nix develop

comm-dev services start # start localstack

# Configure "aws" resources on localstack
(cd services/terraform && ./run.sh)

# start identity service and run mobile workflow
(cd services/identity && cargo run -- server &)
(cd keyserver && yarn dev &)
(cd native && yarn dev &)

Run either the iOS or Android client:

  • Create an account
  • Use TablePlus or other tool to find userID of your user
  • Seed a user:
    • aws dynamodb put-item --table-name identity-users --item '{"userID": {"S": "<USERID>"}}'
  • Verify user exists:
    • aws dynamodb get-item --table-name identity-users --key '{ "userID": {"S": "<USERID>"} }'
  • Change password on account in App
  • Verify user has registration updated with valid entry:
    • aws dynamodb get-item --table-name identity-users --key '{ "userID": {"S": "<USERID>"} }'

Reviewers: varun, bartek, ashoat

Reviewed By: varun, ashoat

Subscribers: ashoat, tomek, atul

Differential Revision: https://phab.comm.dev/D6944

Details

Provenance
jonAuthored on Mar 2 2023, 3:48 PM
Reviewer
varun
Differential Revision
D6944: [Keyserver/identity] Call identity service update_user
Parents
rCOMM99460bba398f: [Identity] Implment update_user endpoint on server
Branches
Unknown
Tags
Unknown