HomePhabricator
Diffusion Comm 1ea00c91423b

[keyserver] Store `primaryIdentityPublicKey` in `public_key` column of…

Tags
None
Referenced Files
F312758: be60cd.png
Jan 3 2023, 3:55 PM
File Not Attached
F312757: IMG_2687.PNG
Jan 3 2023, 3:55 PM
File Not Attached
Subscribers
None

Description

[keyserver] Store primaryIdentityPublicKey in public_key column of cookies table

Summary:
Context: https://linear.app/comm/issue/ENG-1967/update-clients-to-generate-a-publicprivate-keypair-when-authing

Basically pass the primaryIdentityPublicKey contained in the SIWE message statement to the cookie creation step in processSIWEAccountCreation(...).


Depends on D6133

Test Plan:

  1. public key included in message signing request:

IMG_2687.PNG (2×1 px, 791 KB)

  1. public key stored in public_key column of cookies table (look at last row):

be60cd.png (504×2 px, 247 KB)

Reviewers: ashoat, tomek

Reviewed By: ashoat

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

Details