Page MenuHomePhabricator

[web] Include `primaryIdentityPublicKey` in SIWE message
ClosedPublic

Authored by atul on Jan 26 2023, 4:34 PM.
Tags
None
Referenced Files
F2763936: D6410.diff
Thu, Sep 19, 12:07 PM
Unknown Object (File)
Sat, Sep 14, 9:38 PM
Unknown Object (File)
Thu, Sep 12, 1:51 AM
Unknown Object (File)
Thu, Sep 12, 1:51 AM
Unknown Object (File)
Thu, Sep 12, 1:51 AM
Unknown Object (File)
Thu, Sep 12, 1:51 AM
Unknown Object (File)
Thu, Sep 12, 1:51 AM
Unknown Object (File)
Thu, Sep 12, 1:48 AM
Subscribers
None

Details

Summary

Include primaryIdentityPublicKey from olm in the SIWE message as we do on native. Note that this diff just includes getting the primaryIdentityPublicKey from olm and including it to the SIWE message statement.

NOTE: Persistence of the primaryIdentityPublicKey will happen in a subsequent diff.
Test Plan

Works as expected, can see that the primaryIdentityPublicKey is included in the SIWE message and everything is validated on the keyserver side!

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul edited the summary of this revision. (Show Details)
atul published this revision for review.Jan 26 2023, 4:40 PM
atul added inline comments.
web/account/siwe.react.js
86โ€“94 โ†—(On Diff #21405)

Why aren't we checking if the user intends to go through the SIWE flow or not like we do with siweNonce???

The plan is to include the primaryIdentityPublicKey for both "traditional" and SIWE log in requests in the future, so just making it available now (very minimal overhead).

remove <p> used for testing/debugging

This revision is now accepted and ready to land.Jan 26 2023, 5:46 PM
This revision was landed with ongoing or failed builds.Jan 27 2023, 12:49 PM
This revision was automatically updated to reflect the committed changes.