Page MenuHomePhabricator

[services] add GetUserID RPC
ClosedPublic

Authored by varun on Jul 22 2022, 1:19 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 23, 4:41 AM
Unknown Object (File)
Thu, Dec 12, 8:02 PM
Unknown Object (File)
Tue, Dec 10, 12:27 AM
Unknown Object (File)
Sat, Dec 7, 6:08 PM
Unknown Object (File)
Mon, Dec 2, 4:13 PM
Unknown Object (File)
Nov 19 2024, 5:31 PM
Unknown Object (File)
Nov 16 2024, 7:09 AM
Unknown Object (File)
Nov 9 2024, 11:35 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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

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

135 ↗(On Diff #14823)

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

Yeah, that was my thinking

This revision was automatically updated to reflect the committed changes.