Page MenuHomePhabricator

[services] add GetUserID RPC
ClosedPublic

Authored by varun on Jul 22 2022, 1:19 PM.
Tags
None
Referenced Files
F3275638: D4614.diff
Sat, Nov 16, 7:09 AM
Unknown Object (File)
Sat, Nov 9, 11:35 AM
Unknown Object (File)
Fri, Nov 8, 8:28 PM
Unknown Object (File)
Fri, Nov 8, 8:28 PM
Unknown Object (File)
Tue, Nov 5, 2:05 AM
Unknown Object (File)
Oct 16 2024, 8:34 PM
Unknown Object (File)
Oct 5 2024, 6:38 PM
Unknown Object (File)
Sep 8 2024, 11:34 AM

Details

Summary

Users and keyservers need to be able to retrieve the userID corresponding to some given user info (username in the case of password auth and wallet address in the case of wallet auth). This RPC exposes that functionality.

Depends on D4613

Test Plan

Checked syntax with linter, identity service build succeeded

Diff Detail

Repository
rCOMM Comm
Branch
update-proto
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

varun requested review of this revision.Jul 22 2022, 1:31 PM
ashoat added inline comments.
native/cpp/CommonCpp/grpc/protos/identity.proto
130–133

Oh that's cool, didn't know you could define these inside another definition

135

On one hand, we could try to be more specific here and have a different result type depending on the AuthType. But after thinking about it a bit I think it's probably not worth it... this approach is more simple and more extensible for other kinds of auth in the future. (We will need to add Apple Auth in order to support SIWE on iOS, for instance)

This revision is now accepted and ready to land.Jul 25 2022, 8:38 AM
native/cpp/CommonCpp/grpc/protos/identity.proto
135

Yeah, that was my thinking

This revision was automatically updated to reflect the committed changes.