HomePhabricator
Diffusion Comm 6da53e0769a7

[landing] Include `Device IdPubKey` in SIWE message statement

Description

[landing] Include Device IdPubKey in SIWE message statement

Summary:
If public key passed as header (siwePrimaryIdentityPublicKey), we'll include it in the SIWE message statement.

For the timebeing if a siwePrimaryIdentityPublicKey is NOT being passed in as header, we'll fallback to the previous SIWE message statement without the public key. Will go back and enforce existence of siwePrimaryIdentityPublicKey (with necessary error handling, error messages, etc) later in the stack.


Depends on D6131

Test Plan:
The Device IdPubKey is being included in SIWE message statement:

IMG_FD3B200D6742-1.jpeg (2×1 px, 482 KB)

Reviewers: ashoat, tomek

Reviewed By: ashoat

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

Details

Provenance
atulAuthored on Jan 3 2023, 2:26 PM
Reviewer
ashoat
Differential Revision
D6132: [landing] Include `Device IdPubKey` in SIWE message statement
Parents
rCOMMc9ef956951bf: [lib] Introduce `getPublicKeyFromSIWEStatement(...)`
Branches
Unknown
Tags
Unknown