Page MenuHomePhabricator

[identity] log out user RPC
ClosedPublic

Authored by varun on Jul 14 2023, 1:01 PM.
Tags
None
Referenced Files
F3349643: D8501.id29911.diff
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
Unknown Object (File)
Sun, Nov 10, 3:59 PM
Unknown Object (File)
Sun, Nov 10, 3:59 PM
Unknown Object (File)
Sun, Nov 10, 3:58 PM
Unknown Object (File)
Tue, Nov 5, 2:12 AM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #28840)

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.