HomePhabricator
Diffusion Comm 6dc2a953186c

[Identity] Fix opaque login

Description

[Identity] Fix opaque login

Summary:
The DDB query operation coupled with KeyConditionExpression
will project only the PartitionKey and the conditional attribute that
you filtered by. So the resulting query would only return username and
user_id for a username query.

Re-querying by partition_key allows for the entirity of the object to be
returned.

Depends on D8400

Test Plan:
Login with password.
Tested by Keyserver login diff later on.

Reviewers: varun, bartek, marcin

Reviewed By: varun, bartek

Subscribers: ashoat, tomek

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

Details

Provenance
jonAuthored on Jun 30 2023, 2:16 PM
Reviewer
varun
Differential Revision
D8402: [Identity] Fix opaque login
Parents
rCOMM57cf5dbdec07: [Identity] Allow for setting logging levels through env
Branches
Unknown
Tags
Unknown