HomePhabricator
Diffusion Comm 5092f6ecd961

[Keyserver] Attempt login to identity service

Description

[Keyserver] Attempt login to identity service

Summary:
Have keyserver attempt to login with identity service
at start up. Save userId and access token.

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

Depends on D8404

Test Plan:

# start docker
# start localstack
comm-dev services start

# start identity service
(cd services/identity && RUST_LOG=debug cargo run -- server &)

# start keyserver
cd keyserver && yarn dev

# assert user was written to database
awslocal dynamodb scan --table-name identity-users

# assert that credentials were written to keyserver's metadata table

Reviewers: ashoat, varun

Reviewed By: ashoat

Subscribers: tomek

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

Details

Provenance
jonAuthored on Jun 30 2023, 2:47 PM
Reviewer
ashoat
Differential Revision
D8405: [Keyserver] Attempt login to identity service
Parents
rCOMM0955edc89f9b: [Keyserver/rust] Remove legacy auth_token configuration
Branches
Unknown
Tags
Unknown