HomePhabricator
Diffusion Comm c1469c21a1aa

[native] register_user client method

Description

[native] register_user client method

Summary:
This method handles the bidi streaming interaction with the Identity service for registering a user. Some of the logic has been moved to subroutines that can be found earlier in the stack. I tested this method by creating a main function and calling it, and successfully receiving an access token. I tested the error cases by modifying the Identity service (running locally) to simulate various siutations (wrong response returned, server hangup, invalid response bytes) and checked that they were handled correctly on the client side by inspecting the logs.

Depends on D4857

Test Plan: See the summary above

Reviewers: tomek, karol, atul

Reviewed By: tomek, karol

Subscribers: ashoat, adrian, atul, abosh

Differential Revision: https://phab.comm.dev/D4802

Details

Provenance
varunAuthored on Aug 10 2022, 4:38 PM
Reviewer
tomek
Differential Revision
D4802: [native] register_user client method
Parents
rCOMMbfa63aaec1f7: [native] helper to handle access token response
Branches
Unknown
Tags
Unknown