Page MenuHomePhabricator

[native] Remove background identity login handler
AbandonedPublic

Authored by tomek on Feb 27 2025, 6:22 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 1, 8:40 AM
Unknown Object (File)
Tue, Apr 1, 7:52 AM
Unknown Object (File)
Tue, Apr 1, 4:26 AM
Unknown Object (File)
Mon, Mar 31, 7:27 AM
Unknown Object (File)
Thu, Mar 27, 7:53 AM
Unknown Object (File)
Mar 17 2025, 9:25 PM
Unknown Object (File)
Mar 17 2025, 8:11 PM
Unknown Object (File)
Mar 13 2025, 6:27 PM
Subscribers

Details

Reviewers
kamil
bartek
Summary

When this handler is present, clearing the state for SIWE users results in forcing a logout, which interferes with sensitive data cleanup - that sometimes results in the data staying in the store.
We probably no longer need this handler because we can assume that all the users are logged in to identity. I might be wrong, though, so this diff is more like a proposal and a place for discussion.

https://linear.app/comm/issue/ENG-10271/generating-backups-for-siwe-users-who-used-v1-fallback-doesnt-work

Depends on D14416

Test Plan

Wipe state and kill the app. Verify that the alert store doesn't contain recent alert info.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

tomek requested review of this revision.Feb 27 2025, 6:55 AM

Should we bump the version in keyserver/src/session/version.js along with this change?

keyserver/src/session/version.js
13

If we want to bump the version to the one where Identity login is supported, we need to make use Identity service also supports such a version. This means that we should use at least 446 https://github.com/CommE2E/comm/blob/56c9645dd23fce589df4501a964abeba1eeed602/services/identity/src/constants.rs#L268. And we don't have a good reason to use a higher version.

This looks reasonable to me, accepting to unblock, but I don't have the full context about BackgroundIdentityLoginHandler purposes, so feel free to add @bartek or @ashoat as blocking, if you think this is needed

This revision is now accepted and ready to land.Feb 28 2025, 7:50 AM

This change is controversial, and finding a better solution might be complicated - abandoning the diff.