Page MenuHomePhabricator

Enable sending auth metadata event from Rust
ClosedPublic

Authored by marcin on Dec 14 2023, 5:02 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jun 27, 6:24 AM
Unknown Object (File)
Thu, Jun 27, 12:51 AM
Unknown Object (File)
Tue, Jun 25, 8:06 AM
Unknown Object (File)
Mon, Jun 24, 2:56 PM
Unknown Object (File)
Thu, Jun 20, 11:10 AM
Unknown Object (File)
Wed, Jun 19, 9:22 PM
Unknown Object (File)
Thu, Jun 6, 3:38 AM
Unknown Object (File)
May 31 2024, 6:59 PM
Subscribers

Details

Summary

This differential enables Rust code to send auth metadata event to JS.

Test Plan
  1. Apply this diff from @kamil: https://phab.comm.dev/D10327
  2. Put a call to send_auth_metadata_to_js in one of Rust functions used in the diff linked above. Unfortunately you have to pass dummy hardcoded strings instead of real data from identity service sue to the issue: https://linear.app/comm/issue/ENG-6067/grpc-on-native-physical-device-not-working
  3. Subscribe in JS to auth metadata event (as in previous diffs)
  4. Launch the app. Ensure that dummy metadata is logged.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Dec 14 2023, 10:28 PM
  1. Refactor to remove deviceID emission.
  2. Rebase before landing.