HomePhabricator
Diffusion Comm 0d30bbfc847b

[Keyserver] Refactor getOneTimeKeyValues

Description

[Keyserver] Refactor getOneTimeKeyValues

Summary:
This is useful for more than the current login workflow,
refactor to separate file

In support of https://linear.app/comm/issue/ENG-4602

Depends on D8750

Test Plan:

# Start localstack and rabbitmq
comm-dev services start

(cd services/identity && cargo run -- server)
(cd services/tunnelbroker && cargo run)

# If keyserver has already logged in, reset user_id entry in metadata table
# This will force keyserver to re-login

cd keyserver
yarn dev

# Assert the user is populated in MariaDB

Reviewers: marcin, jon

Reviewed By: marcin

Subscribers: ashoat, tomek

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

Details

Provenance
jonAuthored on Sep 13 2023, 5:12 AM
kamilCommitted on Sep 13 2023, 6:42 AM
Reviewer
marcin
Differential Revision
D8751: [Keyserver] Refactor getOneTimeKeyValues
Parents
rCOMMd1359c5f69df: [Keyserver/rust] Implement upload_one_time_keys to identity service
Branches
Unknown
Tags
Unknown