Page MenuHomePhabricator

[native] handle invalid CSAT in Backup authenticated API
AcceptedPublic

Authored by kamil on Thu, Nov 28, 4:52 AM.

Details

Reviewers
bartek
tomek
Summary

This is implementation on ENG-9604#comment-0ef625dd.

Similar to D14024.

We need to keep this in mind to handle this also in the future, when working on User Data restore, for now we download only User Keys which are unauthenticated, and there is no code for User Data yet.

Depends on D14060

Test Plan
  1. Backup upload works
  2. Mock CSAT with random string -> logged out on backup upload attempt

Diff Detail

Repository
rCOMM Comm
Branch
backup-2
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.Thu, Nov 28, 5:09 AM

Nice, thanks!

shared/backup_client/src/lib.rs
99–108

The original version with single match probably didn't work because of incompatible types, a .into() would probably work. But this is also okay, let it stay as is

This revision is now accepted and ready to land.Thu, Nov 28, 10:34 AM