Page MenuHomePhabricator

[identity] add RPC for logging in users with reserved wallet addresses
ClosedPublic

Authored by varun on Nov 2 2023, 5:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 30, 10:04 PM
Unknown Object (File)
Sun, Nov 24, 6:47 PM
Unknown Object (File)
Wed, Nov 13, 12:51 PM
Unknown Object (File)
Wed, Nov 13, 12:51 PM
Unknown Object (File)
Wed, Nov 13, 12:51 PM
Unknown Object (File)
Wed, Nov 13, 12:51 PM
Unknown Object (File)
Wed, Nov 13, 12:48 PM
Unknown Object (File)
Tue, Nov 12, 4:34 PM
Subscribers

Details

Summary

wallet users on ashoat's keyserver today will have to claim their address when they first auth with the identity service by calling this special RPC.

while implementing the new RPC i found some places in our code base that needed refactoring. if it's difficult to review i can split it out.

Test Plan

added my wallet address to the reserved usernames table. then successfully claimed it using the new RPC

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

varun requested review of this revision.Nov 2 2023, 5:45 PM

don't generate new user ID for existing user

LGTM but I haven't worked with identity service

services/identity/src/client_service.rs
591–608

Could probably be extracted as it's used in 3 places.

This revision is now accepted and ready to land.Nov 3 2023, 8:22 AM

i think it's worth waiting until monday for bartek to review this

This revision now requires review to proceed.Nov 3 2023, 11:50 AM
This revision is now accepted and ready to land.Nov 6 2023, 1:14 AM