Page MenuHomePhabricator

[protos] Add RPC to log in existing device
ClosedPublic

Authored by bartek on Thu, Mar 28, 10:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 13, 5:19 PM
Unknown Object (File)
Sat, Apr 13, 9:06 AM
Unknown Object (File)
Wed, Apr 3, 1:58 PM
Unknown Object (File)
Mon, Apr 1, 11:26 PM
Unknown Object (File)
Sun, Mar 31, 2:00 PM
Unknown Object (File)
Sun, Mar 31, 2:00 PM
Unknown Object (File)
Sun, Mar 31, 1:57 PM
Subscribers

Details

Summary

Adds Existing device login RPC from ENG-6828 to the proto.

Depends on D11435

Test Plan

Only proto changes here + stub code. Everything should compile.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Thu, Mar 28, 11:49 PM
ashoat added inline comments.
shared/protos/identity_unauth.proto
226 ↗(On Diff #38524)

I think it would be helpful to rename this so it's clear what the "challenge" is. For instance, how about signed_nonce?

This revision is now accepted and ready to land.Fri, Mar 29, 12:21 PM
shared/protos/identity_unauth.proto
226 ↗(On Diff #38524)

I followed the SecondaryDeviceKeysUploadRequest format where we call it challenge_response.
We can either:

  • Rename both
  • Add a comment to both describing what this field is
  • Follow up discussions about the Identity.social_proof field being split into two, and split this one into nonce_message and nonce_signature (much more work both client- and server-side)
shared/protos/identity_unauth.proto
226 ↗(On Diff #38524)

nonce_message is basically just nonce, right? I think it would probably be good to split it for consistency... I think we'll save time in the long term by trying to finalize RPCs early instead of adding backlog tasks to change them later

shared/protos/identity_unauth.proto
226 ↗(On Diff #38524)

I'll add a comment now and do the rename in a separate diff to both RPCs
https://linear.app/comm/issue/ENG-7641/consider-renaming-challenge-response

Rebase, add comments explaining challenge response

This revision was automatically updated to reflect the committed changes.