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)
Mon, Nov 18, 6:39 PM
Unknown Object (File)
Sun, Nov 10, 10:23 AM
Unknown Object (File)
Wed, Nov 6, 4:51 AM
Unknown Object (File)
Oct 18 2024, 1:51 AM
Unknown Object (File)
Oct 18 2024, 1:51 AM
Unknown Object (File)
Oct 18 2024, 1:51 AM
Unknown Object (File)
Oct 18 2024, 1:51 AM
Unknown Object (File)
Oct 18 2024, 1:51 AM
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.