[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