Page MenuHomePhabricator

[keyserver] add `source` field to `LogInRequest`
ClosedPublic

Authored by kamil on Sep 29 2022, 3:52 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 25, 10:27 PM
Unknown Object (File)
Mon, Nov 25, 10:27 PM
Unknown Object (File)
Mon, Nov 25, 7:59 PM
Unknown Object (File)
Mon, Nov 25, 7:58 PM
Unknown Object (File)
Mon, Nov 25, 7:58 PM
Unknown Object (File)
Mon, Nov 11, 4:46 PM
Unknown Object (File)
Fri, Nov 8, 3:17 AM
Unknown Object (File)
Oct 25 2024, 8:16 PM

Details

Summary

Add source param on the server LogInRequest type. (task)

Test Plan
  1. flow check
  2. Test login with different sources (from the native, web, on session recovery when cookie expired) and make sure provided source is correct.
  3. Make sure it works for older native clients (e.g. pass source as undefined)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.Sep 29 2022, 4:42 AM
kamil edited the summary of this revision. (Show Details)
kamil edited the test plan for this revision. (Show Details)
kamil added a reviewer: atul.
ashoat requested changes to this revision.Sep 29 2022, 7:30 AM

This is a really bad idea. You're going to cause all existing native clients to crash when they attempt to log in.

This revision now requires changes to proceed.Sep 29 2022, 7:30 AM
kamil edited the test plan for this revision. (Show Details)

leave sorce optional on keyserver

kamil retitled this revision from [keyserver] make `source` param required on log in to [keyserver] add `source` field to `LogInRequest`.Sep 29 2022, 8:07 AM
kamil edited the summary of this revision. (Show Details)
kamil edited the test plan for this revision. (Show Details)

This is a really bad idea. You're going to cause all existing native clients to crash when they attempt to log in.

Yea, my mistake...

Updated diff to leave this param as maybe and make it resolve this comment: https://phab.comm.dev/D5259#inline-34610

This revision is now accepted and ready to land.Sep 29 2022, 9:14 AM