Page MenuHomePhabricator

[identity] log out user RPC
ClosedPublic

Authored by varun on Jul 14 2023, 1:01 PM.
Tags
None
Referenced Files
F3367504: D8501.diff
Mon, Nov 25, 2:57 PM
Unknown Object (File)
Sun, Nov 24, 9:21 PM
Unknown Object (File)
Sat, Nov 23, 6:56 AM
Unknown Object (File)
Fri, Nov 22, 10:07 PM
Unknown Object (File)
Fri, Nov 22, 6:31 PM
Unknown Object (File)
Wed, Nov 13, 4:39 AM
Unknown Object (File)
Sun, Nov 10, 3:59 PM
Unknown Object (File)
Sun, Nov 10, 3:59 PM
Subscribers

Details

Summary

calling this RPC will clear a device's access token and keys from DDB

Depends on D8500

Test Plan

called the RPC from kreya and verified that my device's keys and token were removed from DDB

Diff Detail

Repository
rCOMM Comm
Branch
logout (branched from master)
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Jul 14 2023, 1:06 PM
Harbormaster failed remote builds in B20936: Diff 28690!
varun requested review of this revision.Jul 19 2023, 8:40 AM

Eventually, we should move this to the authenticated service

services/identity/src/client_service.rs
689–706

feel like this should just be a call to verify_access_token

This revision now requires changes to proceed.Jul 19 2023, 12:19 PM

addressed feedback. found a few other instances where we could simplify logic by calling verify_access_token

Accepting to not block progress.

Eventually this should be moved to the authenticated proto, however, that can wait until after https://phab.comm.dev/D8804 lands.

This revision is now accepted and ready to land.Aug 15 2023, 9:42 AM
This revision was automatically updated to reflect the committed changes.