-
Notifications
You must be signed in to change notification settings - Fork 975
Support scanning URL-based sync setup codes #5957
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: feature/craig/sync_barcode_url_support
Are you sure you want to change the base?
Support scanning URL-based sync setup codes #5957
Conversation
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
b3a3796
to
a1b61b8
Compare
f0a8c1f
to
8c0385e
Compare
4ff8eae
to
58eb9a9
Compare
8c0385e
to
04a3d69
Compare
58eb9a9
to
7e6a74c
Compare
04a3d69
to
2802216
Compare
7e6a74c
to
245efaa
Compare
2802216
to
3a3f3f7
Compare
245efaa
to
58c85e6
Compare
3a3f3f7
to
976bad3
Compare
58c85e6
to
1dc1ad0
Compare
976bad3
to
3e4cd5f
Compare
1dc1ad0
to
2ada4fb
Compare
3e4cd5f
to
d2dcea8
Compare
2ada4fb
to
1072477
Compare
08f2b8e
to
53b7564
Compare
1072477
to
444943d
Compare
53b7564
to
e0f4637
Compare
444943d
to
f689aaf
Compare
e0f4637
to
d40f734
Compare
f689aaf
to
860b063
Compare
Timber.d("Sync: code is a recovery code") | ||
return login(it) | ||
} | ||
override fun processCode(code: CodeType): Result<Boolean> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now takes in the parsed code so we don’t have to parse it from JSON twice any more
d40f734
to
8a29088
Compare
8a29088
to
a68eb63
Compare
860b063
to
61a59a3
Compare
Task/Issue URL: https://app.asana.com/1/137249556945/project/72649045549333/task/1209921186465304?focus=true
Description
#5944 allows the barcodes to be rendered as URL-based; this PR is the other side of the coin in adding support for scanning URL-based sync setup barcodes.
A note on feature flagging
For feature flagging around URL-based barcodes, I’ve separated out the ability to render them vs the ability to scan them. I think this will help the logistics around rolling it out, but sense-check that for me.
syncSetupBarcodeIsUrlBased
canScanUrlBasedSyncSetupBarcodes
Steps to test this PR
You’ll need two devices, at least one of them being a real device so you can scan the barcode using its camera.
Scanning a
connect
codeSync with another device
on bothScanning an
exchange
codeSync with another device
on bothScanning a plaintext
recovery
codeexchangeKeysToSyncWithAnotherDevice
Sync with another device
on both devicesexchangeKeysToSyncWithAnotherDevice
means URL-based codes won’t show either)Scanning a URL-based
recovery
codeThis isn’t acceptable so we won’t generate URLs containing recovery codes, but let’s test what happens if one is scanned. Barcode for testing what happens if you scan a recovery code inside a URL
Sync with another device
on the physical deviceRecovery code found inside a URL which is not acceptable