Page MenuHomePhabricator

[Identity] Refactor get user_id and device_id
ClosedPublic

Authored by jon on Jul 24 2023, 6:52 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 16, 11:48 PM
Unknown Object (File)
Mon, Apr 15, 3:35 AM
Unknown Object (File)
Mon, Apr 15, 12:26 AM
Unknown Object (File)
Sat, Apr 13, 3:36 AM
Unknown Object (File)
Fri, Apr 12, 5:04 PM
Unknown Object (File)
Fri, Apr 12, 4:17 PM
Unknown Object (File)
Wed, Apr 10, 5:05 PM
Unknown Object (File)
Wed, Apr 10, 9:41 AM
Subscribers

Details

Summary

This is useful for all authenticated requests, refactor.

Part of: https://linear.app/comm/issue/ENG-4445

Depends on D8605

Test Plan
cd identity && cargo build

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 24 2023, 6:58 AM
Harbormaster failed remote builds in B21149: Diff 28971!
bartek added inline comments.
services/identity/src/grpc_services/authenticated.rs
73 ↗(On Diff #29028)

If they're a common pair, we can go further and define a struct type for them

This revision is now accepted and ready to land.Jul 26 2023, 3:04 AM
jon added inline comments.
services/identity/src/grpc_services/authenticated.rs
73 ↗(On Diff #29028)

A lot of these changes are just small improvements, it's hard to know when I should make something more formalized.

76 ↗(On Diff #29028)

Would probably be nice for this to be defined in some more formal way. However, that would probably involve moving a bunch of this to something in shared/

77 ↗(On Diff #29028)

this should probably be related to missing a header instead of unauthenticated, although this value is also used for authentication.