Page MenuHomePhabricator

[services] add GetUserID RPC
ClosedPublic

Authored by varun on Jul 22 2022, 1:19 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Sep 8, 11:34 AM
Unknown Object (File)
Sun, Sep 8, 11:34 AM
Unknown Object (File)
Sun, Sep 8, 11:33 AM
Unknown Object (File)
Sun, Sep 8, 11:30 AM
Unknown Object (File)
Fri, Aug 30, 2:31 PM
Unknown Object (File)
Thu, Aug 29, 6:54 PM
Unknown Object (File)
Thu, Aug 29, 6:52 PM
Unknown Object (File)
Aug 27 2024, 9:00 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.