Page MenuHomePhabricator

[identity] register_reserved_password_user_start method
ClosedPublic

Authored by varun on Jun 1 2023, 1:38 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 13, 1:01 AM
Unknown Object (File)
Thu, Nov 7, 4:23 PM
Unknown Object (File)
Fri, Nov 1, 3:06 AM
Unknown Object (File)
Fri, Nov 1, 3:06 AM
Unknown Object (File)
Fri, Nov 1, 3:05 AM
Unknown Object (File)
Fri, Nov 1, 3:03 AM
Unknown Object (File)
Sun, Oct 27, 11:49 AM
Unknown Object (File)
Oct 10 2024, 4:01 PM
Subscribers

Details

Summary

This method is similar to the existing register_password_user_start method. The difference is, here we check if the username is in the list of reserved usernames from Ashoat's keyserver, and if it is, we expect a signed message from Ashoat's keyserver attesting that the caller can claim this username.

This RPC should only be called if login fails because the username is already registered on Ashoat's keyserver but not yet registered on the identity service.

Depends on D8061

Test Plan

Seeded the DynamoDB reserved usernames table with a reserved username, then successfully claimed and registered the username with the new RPC and the registration finish RPC

Also tested failure cases where the signed message is malformed, the timestamp expired, and username not actually reserved

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable